Xceed DataGrid for WPF v7.2 Documentation
CollapseDetails Method (DataGridContext)


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

Parameters

dataItem
The data item that owns the details to collapse. If the item has multiple sibling details, the will all be collapsed. 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 (including any possible children) 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

DataGridContext Class
DataGridContext Members