Hai,
I have a problem regarding DataGrid sorting.The grid is an userControl
The below event is not getting fired
Private Sub RepMsgGrd_SortCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridSortCommandEvent Args) Handles RepMsgGrd.SortCommand
If Me.sortCriteria = e.SortExpression Then
If Me.sortDir = "desc" Then
Me.sortDir = "asc"
Else
Me.sortDir = "desc"
End If
End If
Me.sortCriteria = e.SortExpression
DisplayGrid()
End Sub
Best Regards,
Senthil Kumar.V
Email:
[email protected]