Skip to main content

GridColumn Class

An abstract class that serves as the base class for grid columns.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public abstract class GridColumn :
    BindableObject,
    IDataGrid.IColumn,
    IAppearanceOwner

Remarks

DataGridView represents fields of the bound data source as columns. An individual column is a GridColumn class descendant that corresponds to the type of data this column displays. The column’s FieldName property specifies the associated data source’s field.

The GridColumn class implements the basic functionality for a grid column. It provides properties to adjust column settings…

… and manage grid data:

The grid stores its columns in the Columns collection. It automatically generates columns based on the bound data source (AutoGenerateColumnsMode), or you can add columns to the grid and associate them with data fields manually. To create a column, do not create an instance of the GridColumn class directly, use its descendant instead. See the example: Create Columns for Different Data Types.

See Also