GridViewBase.GroupPanelDragTextHorizontalAlignment Property
Gets or sets the horizontal alignment of the Group Panel text. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Nullable<HorizontalAlignment> | null | A value that specifies the hint alignment. |
Remarks
The GroupPanelDragTextHorizontalAlignment property controls the horizontal alignment of the Group Panel text.

When the GroupPanelDragTextHorizontalAlignment property is null, the current theme applies the following text alignment:
Leftwhen the SearchPanelPosition property isDefault.Centerwhen the search panel overlaps the group panel.
Example
The following example aligns the Group Panel text (Drag a column header here to group by that column) to the left:

<dx:ThemedWindow x:Class="GroupPanelExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
... >
<dxg:GridControl ItemsSource="{Binding Items}">
<dxg:GridControl.View>
<dxg:TableView
ShowGroupPanel="True"
GroupPanelDragTextHorizontalAlignment="Left"/>
</dxg:GridControl.View>
</dxg:GridControl>
</dx:ThemedWindow>
See Also