Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1640
Disabling click on grid column headers
posted

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?

Parents
No Data
Reply
  • 21795
    Offline posted

    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.

    CAS-150304-F1Z8L2.zip
Children