aaronjonmartin
Technical User
Hi guys hope you can shed some light on this. I have a datagrid which contains a template column which displays a firstname and surname from 2 records in a database. Here is the code for the template column:
I have other columns which are bound columns and are sortable. My question is, can i make this template column sortable? and how do i do it?
Any help with this would be greatly appreciated.
Aaron
"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
Code:
<asp:TemplateColumn HeaderText="Name">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "FirstName") %>
<%# DataBinder.Eval(Container.DataItem, "Surname") %>
</ItemTemplate>
</asp:TemplateColumn>
I have other columns which are bound columns and are sortable. My question is, can i make this template column sortable? and how do i do it?
Any help with this would be greatly appreciated.
Aaron
"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)