Xceed Toolkit Plus for WPF v4.6 Documentation
ToggleGroupExpansion Method (DataGridContext)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridContext Class : ToggleGroupExpansion Method
A CollectionViewGroup representing the group whose state is to be toggled. A collapsed group will be expanded and an expanded group will be collapsed.
Toggles the specified group.
Syntax
'Declaration
 
Public Function ToggleGroupExpansion( _
   ByVal group As CollectionViewGroup _
) As Boolean
'Usage
 
Dim instance As DataGridContext
Dim group As CollectionViewGroup
Dim value As Boolean
 
value = instance.ToggleGroupExpansion(group)
public bool ToggleGroupExpansion( 
   CollectionViewGroup group
)

Parameters

group
A CollectionViewGroup representing the group whose state is to be toggled. A collapsed group will be expanded and an expanded group will be collapsed.
Exceptions
ExceptionDescription
The specified CollectionViewGroup is not part of the current context.
Remarks
The state of child groups will not be affected if their parent's state is toggled.
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