Is there a way to find out which column the user sorted on?
Hi,
Try below code:
UltraGrid1.AfterSortChange
= e.Band.Header.Caption.ToString
Sub
I wonder if I am missing a setting. e.Band.Header.Caption gives me the table name of the dataset its bound to.
I was able to use this in AfterSortChange event:
For i = 0 To e.Band.SortedColumns.Count - 1 Dim sortColumn As UltraGridColumn = e.Band.SortedColumns(i) _ColumnsList.Add(sortColumn.Key & " " & sortColumn.SortIndicator.ToString()) Next
To find out which columns are sorted by.