Hey tehre everybody.
I have a (hopefully) simple to answer question:
How can I disable the sorting functionality in the UltraWinGrid.
Right now it toggles between Ascending and descending sort, but I want to disable the sorting alltogether.
Is this possible?
If so, how?
Thx in advance
Hi,
Something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.HeaderClickAction = HeaderClickAction.Select; e.Layout.Override.SelectTypeCol = SelectType.None; }
The second line of code here is optional, if you want to turn off column selection, also.