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.VerticalContentAlignment Property

Gets or sets the vertical 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 VerticalContentAlignment { get; set; }

#Property Value

Type Description
TextAlignment

The content’s vertical alignment.

#Remarks

Follow the steps below to align a cell’s content to the top/bottom border:

  1. Set the VerticalContentAlignment to Start / End .
  2. Specify the Padding property value to reduce paddings inside cells.

To specify the horizontal alignment of the column’s content, use the GridColumn.HorizontalContentAlignment property.

See Also