<asp:gridview id="grdView" runat="server" onsorting="grdView_Sorting" allowsorting="true"> <columns> <asp:TemplateField SortExpression="CategoryCode"> <HeaderTemplate> <table width="730px" border="1"> <tr> <td> ---- I have some header names inside this td's </td> </tr> </table> </HeaderTemplate> <itemtemplate> <table border="0" class="displaygrid" width="730px"> <tr> <td> <div> <%# Eval("Description")%> </div> </td> <td> <div> <%# Eval("CategoryCode")%> </div> </td> </tr> </table> </itemtemplate></columns>
<asp:TemplateField SortExpression="Category"> <HeaderTemplate>Category</HeaderTemplate> <ItemTemplate>A value</ItemTemplate> </asp:TemplateField>
<asp:TemplateField HeaderText="Category" SortExpression="Category"> <ItemTemplate>A value</ItemTemplate> </asp:TemplateField>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)