Skip to main content
A newer version of this page is available. .

GridColumnReadOnlyCollection Class

Represents a read-only column collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public class GridColumnReadOnlyCollection :
    ReadOnlyCollectionBase,
    IEnumerable<GridColumn>,
    IEnumerable

The following members return GridColumnReadOnlyCollection objects:

Remarks

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.

Inheritance

See Also