DataGridView.GroupRowTemplate Property
Gets or sets the template that defines the visual representation of group rows. This is a bindable property.
Namespace: DevExpress.Maui.DataGrid
Assembly: DevExpress.Maui.DataGrid.dll
NuGet Package: DevExpress.Maui.DataGrid
Declaration
public DataTemplate GroupRowTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | A template for group rows. |
Remarks
When data is grouped, the grid displays group rows to separate groups of data rows. End users can tap group rows to expand and collapse groups.
A group row displays the following elements:
- Collapse Icon - Indicates whether the group is collapsed or expanded.
- Grouping Column - A caption of a column by whose values data is grouped.
- Group Row Value - A data value for which the group is created.
- Group Summary - A group summary value.
The GroupRowTemplate property allows you to define a custom template that would replace the default visual structure of group rows. You can also specify a separate template for a group row caption (in the default structure, it is shown at the left side of the group row, and includes column caption and data value) and group summary. To do this, use the GridColumn.GroupCaptionTemplate, DataGridView.GroupCaptionTemplate and DataGridView.GroupSummaryTemplate properties. The GroupRowData class specifies the binding context for these templates.
Related Scenario
The following featured scenario shows how you can use the GroupRowTemplate property:
Replicate a Single-Column Kanban View