Xceed DataGrid for WPF v7.2 Documentation
GetChildContext(Object,String) Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridContext Class > GetChildContext Method : GetChildContext(Object,String) Method
The item whose child DataGridContext is to be retrieved. Cannot be a null reference (Nothing in Visual Basic).
A string representing the relation name of the DetailConfiguration that is the source of the child context.
Retrieves the child DataGridContext created from the detail configuration that has the specified relation name.
Syntax
'Declaration
 
Public Overloads Function GetChildContext( _
   ByVal parentItem As Object, _
   ByVal relationName As String _
) As DataGridContext
'Usage
 
Dim instance As DataGridContext
Dim parentItem As Object
Dim relationName As String
Dim value As DataGridContext
 
value = instance.GetChildContext(parentItem, relationName)
public DataGridContext GetChildContext( 
   object parentItem,
   string relationName
)

Parameters

parentItem
The item whose child DataGridContext is to be retrieved. Cannot be a null reference (Nothing in Visual Basic).
relationName
A string representing the relation name of the DetailConfiguration that is the source of the child context.

Return Value

The child DataGridContext of the specified parentItem.
Exceptions
ExceptionDescription
 
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

DataGridContext Class
DataGridContext Members
Overload List