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
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;
Hi,
I am trying to do the same but inside a web ultra grid.
In a Win Grid you could write it like this
foreach (UltraGridColumn col in grid.DisplayLayout.Bands[0].Columns) { if (col.IsChaptered == false) gridColumnsCheckedListBox.Items.Add(""); }
But I cannot find how to do the IsChaptered for when trying in a website.
Any help would be appreciated