Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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