GetParentGroupFromItem Method
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : GetParentGroupFromItem Method

item

The item whose parent group is to be retrieved. The item can correspond to a master data item or an item in the headers or footers of a master group.

Retrieves the parent group for the specified item.

Syntax

Visual Basic (Declaration) 
Public Function GetParentGroupFromItem( _
   ByVal item As Object _
) As CollectionViewGroup
C# 
public CollectionViewGroup GetParentGroupFromItem( 
   object item
)

Parameters

item

The item whose parent group is to be retrieved. The item can correspond to a master data item or an item in the headers or footers of a master group.

Return Value

A CollectionViewGroup representing the parent group of the specified item. Can be a null reference (Nothing in Visual Basic) if the item exists but does not have a parent group.

Exceptions

ExceptionDescription
System.InvalidOperationExceptionThe specified item is neither a master data item nor an item located in the headers or footers of a grid or master group.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also