Xceed DataGrid for Silverlight Documentation
ToggleGroupExpansion Method (DataGridControl)
Example 


A DataGridPath representing the path of the group to expand or collapse.
Toggles the expansion state of the group at the specified path.
Syntax
'Declaration
 
Public Sub ToggleGroupExpansion( _
   ByVal groupPath As DataGridPath _
) 
'Usage
 
Dim instance As DataGridControl
Dim groupPath As DataGridPath
 
instance.ToggleGroupExpansion(groupPath)
public void ToggleGroupExpansion( 
   DataGridPath groupPath
)

Parameters

groupPath
A DataGridPath representing the path of the group to expand or collapse.
Example
Dim currentItem As Object = sldgDataGridControl.CurrentItem
 
Dim currentPath As DataGridPath = sldgDataGridControl.GetPathFromItem( currentItem )
sldgDataGridControl.ToggleGroupExpansion( currentPath.ParentPath )
object currentItem = sldgDataGridControl.CurrentItem;
 
DataGridPath currentPath = sldgDataGridControl.GetPathFromItem( currentItem );
sldgDataGridControl.ToggleGroupExpansion( currentPath.ParentPath );
Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Send Feedback