How do I sort a web grid. I set the AllowSort property to true and tried to do the
following in the Sort event, but I get a funny looking grid without any data.
Private Sub DataGrid1_SortCommand(.....) Handles DataGrid1.SortCommand
TextBox4.Text = e.SortExpression.ToString()
Me.DataSet11.Tables(0).DefaultView.Sort = e.SortExpression.ToString
Me.DataGrid1.DataSource = Me.DataSet11.Tables(0).DefaultView
Me.DataGrid1.DataBind()
End Sub
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.