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

GridColumnCollection Class

Represents the grid’s column collection.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v17.2.dll

Declaration

public class GridColumnCollection :
    ColumnCollectionBase<GridColumn>

The following members accept/return GridColumnCollection objects:

Remarks

The grid stores its columns within the GridControl.Columns collection. The GridColumnCollection class provides methods that can be used to add, delete, or access individual columns and perform other common collection management tasks. Individual columns are represented by GridColumn objects and can be accessed by their field name or using indexed notation.

To learn more, see Creating Columns and Binding Them to Data Properties and Accessing and Identifying Columns.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridColumnCollection class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
Collection<GridColumn>
ObservableCollection<GridColumn>
DevExpress.Xpf.Core.ObservableCollectionCore<GridColumn>
DevExpress.Xpf.Grid.ColumnCollectionBase<GridColumn>
GridColumnCollection
See Also