Back to Devexpress

DataGridView.GetGroupDisplayText(Int32) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-dot-getgroupdisplaytext-x28-system-dot-int32-x29.md

latest2.0 KB
Original Source

DataGridView.GetGroupDisplayText(Int32) Method

Returns an actual or formatted value displayed in the specified group row (group header).

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public string GetGroupDisplayText(
    int groupRowHandle
)

Parameters

NameTypeDescription
groupRowHandleInt32

A negative integer starting with -1 that specifies a group row handle.

|

Returns

TypeDescription
String

The actual or formatted value displayed in the specified group row (group header).

|

Remarks

You can group data rows in the grid by values in a specific column. The value used to arrange multiple data rows into a single group is displayed in the group header (group row). The displayed value can be the actual data value or a value formatted according to the DisplayFormat expression (see SortMode).

You can use the following methods to obtain a value displayed in a specific group’s header:

GetGroupDisplayText(Int32)Returns the actual or formatted value depending on the SortMode option.GetGroupValue(Int32)Returns the actual data value.

See Also

GetGroupValue(Int32)

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace