Hello Roman,
Thank you for your feedback.
In order to disable sorting on the columns by clicking on the columns headers you may set HeaderClickAction property of the Override to Select. You may use code like this:
e.Layout.Override.HeaderClickAction = HeaderClickAction.Select;
However, this will hide also SortIndicators. To show them you need to add sorted columns to SortedColumns collection of the band. You may use code like this for each sorted column:
e.Layout.Bands[0].SortedColumns.Add(e.Layout.Bands[0].Columns[1], false);
One more point. When you set HeaderClickAction to Select if the user clicks on the column’s header the entire column will be selected. If this is not accepted behavior you may set SelectTypeCol propert of the Override to None like this:
e.Layout.Override.SelectTypeCol = SelectType.None;
Another approach achieve this behavior is to cancel BeforeSortChange event of the grid.
In the attached sample project I have implemented this. Please check my sample an let me know if this is what you are looking for or if I am missing something.
Thank you for using Infragistics Controls.
CAS-168057-R7K7V1_01