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
680
UltraGridColumn Hidden property
posted

I'm getting the NotSupportedException - "Chaptered columns can not be made visible"  when I set

this.ultraGrid1.DisplayLayout.Bands["BandKey"].Columns[i].Hidden = false; in a for loop.

Please let me know when this type Exception arises. I'm using "Infragistics2.Win.UltraWinGrid.v7.3"

 

Thank you

Parents
  • 45049
    Verified Answer
    posted

    When you have a hierarchical data source, WinGrid creates what are called "chaptered" columns in the parent band, one for each child band.  These columns represent the relation that leads to a new child band.

    As the exception states, chaptered columns cannot be made visible.  This is by design.

    I suggest you add a check to enusre that the column you're trying to make visible isn't a chaptered column:

    if (!this.ultraGrid1.DisplayLayout.Bands["BandKey"].Columns[i].IsChaptered)
        this.ultraGrid1.DisplayLayout.Bands["BandKey"].Columns[i].Hidden = false;

Reply Children
No Data