RadhaKrishnaKiJaya
asked on
Gridview SortExpression
Hi Experts,
I have a column in the gridview which gets its value in Rowdatabound. How can I sort that column. How to specify the SortExpression in this case.
<asp:TemplateField HeaderText="Vendor1" SortExpression="??">
<HeaderStyle Width="20px" HorizontalAlign="left"/>
<ItemStyle Width="20px" HorizontalAlign="left"/>
<ItemTemplate>
<asp:Label ID="lblVendor1ID" runat="server" Visible="false" ></asp:Label>
<asp:Label ID="lblVendor1Name" runat="server"></asp:Label >
</ItemTemplate>
</asp:TemplateField>
Thanks.
I have a column in the gridview which gets its value in Rowdatabound. How can I sort that column. How to specify the SortExpression in this case.
<asp:TemplateField HeaderText="Vendor1" SortExpression="??">
<HeaderStyle Width="20px" HorizontalAlign="left"/>
<ItemStyle Width="20px" HorizontalAlign="left"/>
<ItemTemplate>
<asp:Label ID="lblVendor1ID" runat="server" Visible="false" ></asp:Label>
<asp:Label ID="lblVendor1Name" runat="server"></asp:Label
</ItemTemplate>
</asp:TemplateField>
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER