GridColumn.ContentAlignment Property

Gets or sets the content alignment within column cells. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll


public ColumnContentAlignment ContentAlignment { get; set; }
Public Property ContentAlignment As ColumnContentAlignment

Property Value

Type Description

A ColumnContentAlignment enumeration value.



This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

The default alignment is different for different column types. For example, TextColumn aligns its values at the start by default, NumberColumn - at the end, SwitchColumn - at the center. To change the default alignment, use the column’s ContentAlignment property.

The specified alignment is applied to both the data cells content and the column header.

The specified ContentAlignment property value is ignored for a column by which grid data is grouped – a group value is always aligned at the start and the group summary value (if any) is aligned at the end in a group row.

See Also