Skip to main content

GetGroupFromItem Method

Returns the Group at the indicated level or null if the item is not in the ItemsSource

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public DataGridCollectionViewGroup GetGroupFromItem(
Object item,
int groupLevel
)

Parameters

  Object
item
  Int32
groupLevel

Return Value

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

See Also

Reference

DataGrid Class
Avalonia.Controls Namespace