Skip to main content

DataGridView.GetGroupValue(Int32) Method

Returns the column’s data value for which the group is created.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public object GetGroupValue(
    int groupRowHandle
)

Parameters

Name Type Description
groupRowHandle Int32

The group row handle (a negative integer, starting from -1) or the group’s zero-based index within the grid’s collection of groups.

Returns

Type Description
Object

An object that specifies the data value.

Remarks

When grid data is grouped by the specified column, data rows that have identical values in this column are arranged into groups. The GridColumn.SortMode specifies whether the grid should group data by a column’s data values or display text (values formatted according to the column’s DisplayFormat). A value used for grouping data is displayed in a group row, preceded by a column caption and colons.

The GetGroupDisplayValue method returns a value for which a particular group is created (the column’s data value or display text, depending on the SortMode property value). The GetGroupValue always returns the column’s actual data value.

Group Rows

See Also