Collapses child relations, if any exist for all rows, or for a specified row.
[Visual Basic] Public Sub Collapse( _ ByVal row As Integer _ ) [C#] public void Collapse( int row ); [C++] public: void Collapse( int row ); [JScript] public function Collapse( row : int );
Use the IsExpanded method to determine if a row is expanded.
The following example collapses all rows in the DataGrid control.
[Visual Basic]
DataGrid1.Collapse -1
DataGrid Class | DataGrid Members | System.WinForms Namespace | IsExpanded