windowsforms-devexpress-dot-xtragrid-dot-columns-ca8ec7d7.md
Represents a read-only column collection.
Namespace : DevExpress.XtraGrid.Columns
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public class GridColumnReadOnlyCollection :
ReadOnlyCollectionBase,
IEnumerable<GridColumn>,
IEnumerable
Public Class GridColumnReadOnlyCollection
Inherits ReadOnlyCollectionBase
Implements IEnumerable(Of GridColumn),
IEnumerable
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.
Object ReadOnlyCollectionBase GridColumnReadOnlyCollection BandedGridColumnReadOnlyCollection
See Also