Hi. I have a webform datagrid which should sort whenever the column is
clicked. However, when the column is clicked no sorting occurs and the
datagrid (with the exception of the header) disappears. My code to perform
the datagrid sort is below. My datagrid's AllowSorting property is TRUE.
Could someone please let me know how I can fix this code so that the datagrid
sorts correctly? Thanks.
Private Sub DataGrid1_SortC ommand(ByVal source As Object, _
ByVal e As System.Web.UI.W ebControls.Data GridSortCommand EventArgs) _
Handles DataGrid1.SortC ommand
DataGrid1.DataS ource = DsLogs.spLogsSe lect.DefaultVie w.Sort
DsLogs.spLogsSe lect.DefaultVie w.Sort = e.SortExpressio n
DataGrid1.DataB ind()
End Sub
I've also read the following article to noavail
clicked. However, when the column is clicked no sorting occurs and the
datagrid (with the exception of the header) disappears. My code to perform
the datagrid sort is below. My datagrid's AllowSorting property is TRUE.
Could someone please let me know how I can fix this code so that the datagrid
sorts correctly? Thanks.
Private Sub DataGrid1_SortC ommand(ByVal source As Object, _
ByVal e As System.Web.UI.W ebControls.Data GridSortCommand EventArgs) _
Handles DataGrid1.SortC ommand
DataGrid1.DataS ource = DsLogs.spLogsSe lect.DefaultVie w.Sort
DsLogs.spLogsSe lect.DefaultVie w.Sort = e.SortExpressio n
DataGrid1.DataB ind()
End Sub
I've also read the following article to noavail
Comment