DataGrid.

GetGroupFromItem(object, int) Method

Summary

Returns the Group at the indicated level or null if the item is not in the ItemsSource
Namespace
Avalonia.Controls
Containing Type
DataGrid

Syntax

public DataGridCollectionViewGroup GetGroupFromItem(object item, int groupLevel)

Parameters

Name Type Description
item object item
groupLevel int groupLevel

Return Value

Type Description
DataGridCollectionViewGroup The group the given item falls under or null if the item is not in the ItemsSource