Skip to main content

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

Declaration

[XtraSerializableProperty]
public ColumnContentAlignment ContentAlignment { get; set; }

Property Value

Type Description
ColumnContentAlignment

A ColumnContentAlignment enumeration value.

Available values:

Name Description
Start

Indicates that the column cells content is aligned at the start.

Center

Indicates that the column cells content is aligned at the center.

End

Indicates that the column cells content is aligned at the end.

Remarks

Important

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