Skip to main content
All docs
V26.1
  • 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

    public HorizontalAlignment? GroupPanelDragTextHorizontalAlignment { get; set; }

    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.

    Group Panel Hint Alignment Values

    When the GroupPanelDragTextHorizontalAlignment property is null, the current theme applies the following text alignment:

    • Left when the SearchPanelPosition property is Default.
    • Center when 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:

    Group Panel Hint Alignment

    <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