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.1.dll

Declaration

[XtraSerializableProperty]
public ColumnContentAlignment ContentAlignment { get; set; }
<XtraSerializableProperty>
Public Property ContentAlignment As ColumnContentAlignment

Property Value

Type Description
ColumnContentAlignment

A ColumnContentAlignment enumeration value.

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