GridViewBase.GroupPanelRightContentTemplate Property
Gets or sets the template that displays content in the right part of the Group Panel. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| DataTemplate | null | A |
Remarks
The GroupPanelRightContentTemplate property allows you to display content (for example, a button or status indicator) in the right part of the Group Panel.
Example
The following example adds the Clear Groups button to the right part of the Group Panel:

<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"
... >
<Window.Resources>
<DataTemplate x:Key="GroupPanelRightTemplate">
<Button Content="Clear Groups"
Command="dxg:GridCommands.ClearGrouping"
CommandTarget="{Binding Path=View, ElementName=grid}"
VerticalAlignment="Center" Margin="4,0,4,0"/>
</DataTemplate>
</Window.Resources>
<dxg:GridControl x:Name="grid" ItemsSource="{Binding Items}">
<dxg:GridControl.View>
<dxg:TableView
ShowGroupPanel="True"
GroupPanelRightContentTemplate="{StaticResource GroupPanelRightTemplate}"/>
</dxg:GridControl.View>
</dxg:GridControl>
</dx:ThemedWindow>
The GroupPanelRightContentTemplate property is supported in master-detail scenarios. You can specify separate templates for each view in the hierarchy:
<dxg:GridControl x:Name="masterGridControl" ItemsSource="{Binding Items}">
<dxg:GridControl.View>
<dxg:TableView GroupPanelRightContentTemplate="{StaticResource MasterRightTemplate}"/>
</dxg:GridControl.View>
<dxg:GridControl.DetailDescriptor>
<dxg:DataControlDetailDescriptor ItemsSourceBinding="{Binding Children}">
<dxg:GridControl AutoGenerateColumns="AddNew">
<dxg:GridControl.View>
<dxg:TableView ShowGroupPanel="True"
GroupPanelRightContentTemplate="{StaticResource DetailRightTemplate}"/>
</dxg:GridControl.View>
</dxg:GridControl>
</dxg:DataControlDetailDescriptor>
</dxg:GridControl.DetailDescriptor>
</dxg:GridControl>
See Also