Back to Devexpress

DataGridView.GetGroupValue(Int32) Method

mobilecontrols-devexpress-dot-xamarinforms-dot-datagrid-dot-datagridview-dot-getgroupvalue-x28-system-dot-int32-x29.md

latest2.2 KB
Original Source

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

csharp
public object GetGroupValue(
    int groupRowHandle
)

Parameters

NameTypeDescription
groupRowHandleInt32

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

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

See Also

DataGridView Class

DataGridView Members

DevExpress.XamarinForms.DataGrid Namespace