Skip to main content

GridControl.GroupRowExpandButtonTemplate Property

Gets or sets a template that defines the appearance of expand buttons displayed in group rows.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "OnGroupRowExpandButtonChanged")]
public DataTemplate GroupRowExpandButtonTemplate { get; set; }

Property Value

Type Description
DataTemplate

A template that defines the appearance of expand buttons displayed in group rows. The template’s data context is a GroupRowData object.

Remarks

The following code sample replaces the group row’s expand button with the checkbox:

Grid - Custom Group Row Expand Button

<dxg:GridControl ...>
    <dxg:GridControl.GroupRowExpandButtonTemplate>
        <DataTemplate x:DataType="dxg:GroupRowData">
            <CheckBox IsChecked="{x:Bind IsExpanded, Mode=TwoWay}" 
                      Margin="10,0,0,0" MinWidth="20"/>
        </DataTemplate>
    </dxg:GridControl.GroupRowExpandButtonTemplate>
</dxg:GridControl>
See Also