GridColumn Class
An abstract class that serves as the base class for grid columns.
Namespace: DevExpress.XamarinForms.DataGrid
Assembly: DevExpress.XamarinForms.Grid.dll
NuGet Package: DevExpress.XamarinForms.Grid
Declaration
public abstract class GridColumn :
BindableObject,
IFieldValueVisitor,
IXtraSerializableLayoutEx
Related API Members
The following members return GridColumn objects:
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…
- data display format (DisplayFormat)
- header caption (Caption, ActualCaption, HeaderCaptionLineBreakMode)
- content alignment (HorizontalContentAlignment, VerticalContentAlignment)
- column width (Width, MinWidth, MaxWidth)
- column visibility (IsVisible)
… and manage grid data:
- sort data (AllowSort, SortOrder, SortIndex, SortMode)
- group data (IsGrouped, GroupInterval, GroupCaptionDisplayFormat)
- calculate data values (UnboundExpression, UnboundType)
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.