wpf-devexpress-dot-xpf-dot-grid-dot-basecolumn-a244af82.md
Gets or sets the column header’s content alignment. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public HorizontalAlignment HorizontalHeaderContentAlignment { get; set; }
Public Property HorizontalHeaderContentAlignment As HorizontalAlignment
| Type | Description |
|---|---|
| HorizontalAlignment |
A HorizontalAlignment enumeration value that specifies the content’s horizontal alignment.
|
Use the HorizontalHeaderContentAlignment property to align the header content:
<dxg:GridColumn FieldName="Category" HorizontalHeaderContentAlignment="Center"/>
To align content in the column cells, follow the steps below:
<dxg:GridColumn FieldName="Category" HorizontalHeaderContentAlignment="Center">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
Refer to the following help topic for more information: Column Header Customization.
See Also