DxDataGridColumn.TextAlignment Property

Specifies the text alignment in the column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.2.dll

Declaration

[DefaultValue(DataGridTextAlign.Auto)]
[Parameter]
public DataGridTextAlign TextAlignment { get; set; }

Property Value

Type Default Description
DataGridTextAlign

Auto

A DataGridTextAlign enumeration value.

Available values:

Name Description
Auto

Automatically aligns the text in the column.

Left

Displays the text at the left side of the column.

Center

Displays the text in the center of the column.

Right

Displays the text at the right side of the column.

Justify

The text is justified.

Remarks

The TextAlignment property specifies how the text is aligned in the grid column.

<DxDataGrid Data="@DataSource" >
    ...
    <DxDataGridColumn Field="@nameof(Product.ProductName)" 
        Caption="Product Name" 
        TextAlignment="DataGridTextAlign.Justify" >
    </DxDataGridColumn>
</DxDataGrid>
See Also