Back to Devexpress

DataGridView.GroupRowTemplate Property

mobilecontrols-devexpress-dot-xamarinforms-dot-datagrid-dot-datagridview-4e8bc7b3.md

latest2.5 KB
Original Source

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

csharp
public DataTemplate GroupRowTemplate { get; set; }

Property Value

TypeDescription
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.

See Also

DataGridView Class

DataGridView Members

DevExpress.XamarinForms.DataGrid Namespace