We are using the following logic when there are no sortable columns in a grid:
layout.Override.HeaderClickAction = HeaderClickAction.Select;
layout.Override.SelectTypeCol = Infragistics.Win.UltraWinGrid.SelectType.None;
But the column headers are is still clickable, and will fire a Click event if defined on the grid.
Is there a way to completely disable the clickability of grid column headers?
Hello Richard,
Thank you for posting in our forum.
In order to completely disable the click action of an UltraGrid column’s header you may set Enable property of header to false. Please note you may need to set to appropriate values BackColorDisabled, ForeColorDisabled and etc. appearance properties of the header. Attached I am sending you a small sample solution implementing this approach.
Please let me know if this is what you are looking for or if I am missing something.
I implemented your solution, but the grid column headers are still selectable and clickable.