Xceed Toolkit Plus for WPF v4.6 Documentation
GetParentGroupFromItem Method (DataGridControl)


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

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
'Declaration
 
Public Function GetParentGroupFromItem( _
   ByVal item As Object _
) As CollectionViewGroup
'Usage
 
Dim instance As DataGridControl
Dim item As Object
Dim value As CollectionViewGroup
 
value = instance.GetParentGroupFromItem(item)
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
The specified item is neither a master data item nor an item located in the headers or footers of a grid or master group.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataGridControl Class
DataGridControl Members