Skip to main content

GridColumn.HorizontalContentAlignment Property

Gets or sets the horizontal alignment of the column’s content. This is a bindable property.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public TextAlignment HorizontalContentAlignment { get; set; }

Property Value

Type Description
TextAlignment

The content’s horizontal alignment.

Remarks

The default horizontal alignment is different for different column types. For example, TextColumn and DateColumn align cell values at the start, NumberColumn - at the end, CheckBoxColumn - at the center. To change the default alignment, use the column’s HorizontalContentAlignment property.

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

The specified HorizontalContentAlignment 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.

To specify the vertical alignment of the column’s content, use the GridColumn.VerticalContentAlignment property.

See Also