I'm trying to sort the columns for a GridView in ASP.Net, ideally without refreshing the page.
My data is compiled into a generic list on the server and bound to the GridView in the code-behind.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="White" CellPadding="3" GridLines="Vertical" AllowSorting="True"
CssClass="GridViewStyle" EnableSortingAndPagingCallbacks="True"
AllowPaging="True">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID">
</asp:BoundField>
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title">
</asp:BoundField>
<asp:BoundField DataField="Customer" HeaderText="Customer" SortExpression="Customer">
</asp:BoundField>
</Columns>
When I try to click any of the column headers, nothing happens.
Is there any way to accomplish this without refreshing the page?