kisslogicgoodbye
Programmer
I have a datagrid. "AllowSorting" is true. My column headings are normal underlined links. When they are clicked the page flickers as if data is being refreshed. The column sort doesn't change. Can any one help?
VB 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
Asp code:
<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"
VB 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
Asp code:
<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"