kisslogicgoodbye
Programmer
I have a datagrid. Allow Sorting is checked. My Column headings are links. WHen I click them, the page flickers as if it is refreshing data but the data sort does not change. Can anyone help?
This is the code:
Protected Sub DataGrid1_SortCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) _
Handles DataGrid1.SortCommand
DataView1.Sort = e.SortExpression
DataGrid1.DataBind()
End Sub
This is my asp stuff:
<asp:datagrid id=DataGrid1 style="Z-INDEX: 101; LEFT: 21px; POSITION: absolute; TOP: 24px" runat="server" ForeColor="Black" BorderColor="#999999" BackColor="#CCCCCC" AllowSorting="True" OnSortCommand="DataGrid1_SortCommand"
This is the code:
Protected Sub DataGrid1_SortCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) _
Handles DataGrid1.SortCommand
DataView1.Sort = e.SortExpression
DataGrid1.DataBind()
End Sub
This is my asp stuff:
<asp:datagrid id=DataGrid1 style="Z-INDEX: 101; LEFT: 21px; POSITION: absolute; TOP: 24px" runat="server" ForeColor="Black" BorderColor="#999999" BackColor="#CCCCCC" AllowSorting="True" OnSortCommand="DataGrid1_SortCommand"