GridControl.GroupRowExpandButtonTemplate Property
In This Article
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 |
---|---|
Data |
A template that defines the appearance of expand buttons displayed in group rows. The template’s data context is a Group |
#Remarks
The following code sample replaces the group row’s expand button with the checkbox:
<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