Skip to main content

DataGridView.GroupRowTemplate Property

Gets or sets the template that defines the visual representation of group rows.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

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.

Grid Group Rows

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.

See Also