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

GridColumn() Constructor

Creates a new GridColumn object with default settings.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public GridColumn()

Remarks

Use the constructor to create column objects programmatically. Direct column creation can be used when you add columns using the desired column collection’s GridColumnCollection.AddRange method. The method enables you to add a number of columns at once. If you need to create and add a single column, use the collection’s GridColumnCollection.Add or GridColumnCollection.Insert method instead of direct column creation.

Use a View’s ColumnView.Columns property to access its column collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GridColumn() constructor.

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.

See Also