Back to Devexpress

GridColumnReadOnlyCollection Class

windowsforms-devexpress-dot-xtragrid-dot-columns-ca8ec7d7.md

latest3.3 KB
Original Source

GridColumnReadOnlyCollection Class

Represents a read-only column collection.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public class GridColumnReadOnlyCollection :
    ReadOnlyCollectionBase,
    IEnumerable<GridColumn>,
    IEnumerable
vb
Public Class GridColumnReadOnlyCollection
    Inherits ReadOnlyCollectionBase
    Implements IEnumerable(Of 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

Object ReadOnlyCollectionBase GridColumnReadOnlyCollection BandedGridColumnReadOnlyCollection

See Also

GridColumnReadOnlyCollection Members

GroupedColumns

SortedColumns

VisibleColumns

DevExpress.XtraGrid.Columns Namespace