Skip to main content

GridColumn() Constructor

Creates a new GridColumn object with default settings.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

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 snippet (auto-collected from DevExpress Examples) contains a reference 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