Hi,
in the BeforeSortChange events I add this code:
e.Cancel = True
in order to require data from the database, but preventing the grid filtering no icons appear in the column header...
how can I add the sort icon to the column header programmatically? (the default arrow icon can be good)
Thanks,
Salo
You should set the HeaderClickAction on the column to ExternalSortMulti or ExternalSortSingle. This will allow the user to change the sort indicator icon, but prevent the grid from doing any sorting of the data - you can then sort the data yourself.
To do so I must add
Me.ultraGrid1.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti
in the InitializeLayout event and remove the e.Cancel = True in the BeforeSortChange event (otherwise the arrow is not painted), right?