D
Dan
All,
In order to make a column a clickable link (with 2 url parameters), I used a
TemplateColumn with a Hyperlink Item template. That works great. However,
I would like to be able to sort on that column as well. I am sorting on all
of the other columns in the datagrid already.
How can I make this column sortable?
Code snippet:
<asp:TemplateColumn HeaderText="Client Name">
<ItemTemplate>
<asp:HyperLink Runat=server
Text='<%# DataBinder.Eval(Container.DataItem,"Client_Name") %>'
NavigateUrl = '<%# "Client_Details.aspx?EnhId=" +
DataBinder.Eval(Container.DataItem,"Enhancement_ID") + "&ClientId=" +
DataBinder.Eval(Container.DataItem,"Client_ID") %>'
Target=_blank />
</ItemTemplate>
</asp:TemplateColumn>
In order to make a column a clickable link (with 2 url parameters), I used a
TemplateColumn with a Hyperlink Item template. That works great. However,
I would like to be able to sort on that column as well. I am sorting on all
of the other columns in the datagrid already.
How can I make this column sortable?
Code snippet:
<asp:TemplateColumn HeaderText="Client Name">
<ItemTemplate>
<asp:HyperLink Runat=server
Text='<%# DataBinder.Eval(Container.DataItem,"Client_Name") %>'
NavigateUrl = '<%# "Client_Details.aspx?EnhId=" +
DataBinder.Eval(Container.DataItem,"Enhancement_ID") + "&ClientId=" +
DataBinder.Eval(Container.DataItem,"Client_ID") %>'
Target=_blank />
</ItemTemplate>
</asp:TemplateColumn>