Xceed DataGrid for WPF v7.2 Documentation
ToggleDetailExpansion Method (DataGridControl)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : ToggleDetailExpansion Method
The master data item that owns the details to toggle. If the item has multiple sibling details, they will all be toggled. Cannot be a null reference (Nothing in Visual Basic).
Toggles any details owned by the specified master data item.
Syntax
'Declaration
 
Public Function ToggleDetailExpansion( _
   ByVal dataItem As Object _
) As Boolean
'Usage
 
Dim instance As DataGridControl
Dim dataItem As Object
Dim value As Boolean
 
value = instance.ToggleDetailExpansion(dataItem)
public bool ToggleDetailExpansion( 
   object dataItem
)

Parameters

dataItem
The master data item that owns the details to toggle. If the item has multiple sibling details, they will all be toggled. Cannot be a null reference (Nothing in Visual Basic).

Return Value

true if the data item was found; false, otherwise.
Exceptions
ExceptionDescription
 
Remarks
When a detail is collapsed, it's context ( including any possible child contexts ), no longer exist.
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