I am trying to specify the OnSortCommand
<ASP
ataGrid runat="server" id="ItemReportDG" OnSortCommand="ItemReportDG_Sort"></ASP
ataGrid>
I know this will run
Sub ItemReportDG_Sort(sender As Object, e As DataGridSortCommandEventArgs)
...
...
End Sub
Here is the trick that I can't seem to figure out. I am actually passing a DataGrid as a control back to the form that needs to be sorted. So how can i specify the OnSortCOmmand using code, and not inside the tag?
For example, right now I have
MyDataGrid.AllowSorting = True
MyDataGrid.AutoGenerateColumns = False
and then I proceed to add bounded columns.
Please help, this is urgent
<ASP
I know this will run
Sub ItemReportDG_Sort(sender As Object, e As DataGridSortCommandEventArgs)
...
...
End Sub
Here is the trick that I can't seem to figure out. I am actually passing a DataGrid as a control back to the form that needs to be sorted. So how can i specify the OnSortCOmmand using code, and not inside the tag?
For example, right now I have
MyDataGrid.AllowSorting = True
MyDataGrid.AutoGenerateColumns = False
and then I proceed to add bounded columns.
Please help, this is urgent