Skip to main content

GridColumnReadOnlyCollection Class

Represents a read-only column collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation


public class GridColumnReadOnlyCollection :

The following members return GridColumnReadOnlyCollection objects:


Views provide the ColumnView.VisibleColumns, ColumnView.GroupedColumns and ColumnView.SortedColumns collections so that you can process currently visible, grouped and sorted columns respectively. These collections are automatically updated by the View when columns change their visible state and when changing data grouping or sorting is applied. You are not allowed to add or remove individual column objects. You can only access column object(s) or determine whether a collection contains a particular column. Such read-only column collection functionality is implemented by the GridColumnReadOnlyCollection class, which is the type of all the properties mentioned.

In Card Views and Grid Views, collection elements are GridColumn objects. In banded Views, each individual element is represented by a BandedGridColumn object.


See Also