Hallo
I would like to set the grouping by the column from the code.
Unfortunately, IsGroupByColumn property is read-only.
How can I set the grouping?
Currently I'm trying to do it the following way:
grid.DisplayLayout.Bands[0].Columns[i].IsGroupByColumn
and I get the error
Property or indexer 'Infragistics.Win.UltraWinGrid.UltraGridColumn.IsGroupByColumn' cannot be assigned to -- it is read only
Regards
Hubert
Hi Hubert,
Grouping and sorting are tightly linked. So you need to use the SortedColumns collection on the band. The third parameter to this method specifies whether the column should be grouped.
grid.DisplayLayout.Bands[0].SortedColumn.Add(...)
Would please give us more details.
I would like to group by a column in dynamically in my code by it does not work and give me the same error msg