[Root] / Xceed.Wpf.DataGrid.Toolkit 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.



In This Topic
    GetParentGroupFromItem Method (DataGridControl)
    In This Topic
    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.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also