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
620
How to make HeaderClickAction do nothing? (incl. no blue box on mouseover)
posted

I have a grid where the headers only inform the user what the column content is.

There is NO function I want to offer. No sorting, no column selecting, nothing.

I can sort of fool it by selecting the HeaderClickAction.ExternalSortSingle for example.

But then I still get a blue box around the headers on mouseover, which misleads the user to thinking something should happen if clicked.

I'm hoping there just something simple, like HeaderClickAction.DoNothing.

Alternatively, can I hide the column headers entirely? (in my particular case, there is only one hidden and one visible column anyway)

Parents
No Data
Reply
  • 53790
    posted

    Hello Kennethknoepfli,

    Maybe one possible approach to acheive desired behavior could be :

    Kennethknoepfli said:
    No sorting

    this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Default;

    Kennethknoepfli said:
    no column selecting

    this.ultraGrid1.DisplayLayout.Override.SelectTypeCol = Infragistics.Win.UltraWinGrid.SelectType.None;

    Kennethknoepfli said:
    Alternatively, can I hide the column headers entirely?

    ultraGridBand1.ColHeadersVisible = false;

    Let me know if you have any questions.

    Regards

Children