Hello there!
I have a problem with my GridView Control. In my aspx page, i have a GridView1 with columns:
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:TemplateField HeaderText="CustomWord">
<ItemTemplate>
<asp:Label ID="lblWord" runat="server" Text=""></asp:Label>
</ItemTemplate>
</asp:TemplateField>
The 'Name' column gets the data from the GridView1's SqlDataSource. Sorting is working well at that point.
BUT,
The 'lblWord' label of the 'CustomWord' column, gets the data from the custom-made function 'makeWord()' in the GridView1_RowDataBound() Event.
The 'makeWord()' function generates a string by adding and reading different variables....
HOW can i enable sort for the 'CustomWord' column? The GridView1's SqlDataSource does not have any relationship with 'makeWord()' function...
The 'makeWord()' function does not includes any DataSource....
Please, help! I have read a lot of articles inside and outside of forums.asp.net but i can't find the answer...
Please, mark this post as "Answer" if it helped you solve your problem.
MinimalTech.