DxDataGridColumn.TextAlignment Property

Specifies the text alignment in the column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

[Parameter]
public DataGridTextAlign TextAlignment { get; set; }

Property Value

Type Description
DataGridTextAlign

One of the enumeration values.

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