NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.Collapse

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
);

Parameters

row
The number of the the row to collapse. If set to-1, all rows are collapsed.

Remarks

Use the IsExpanded method to determine if a row is expanded.

Example [Visual Basic]

The following example collapses all rows in the DataGrid control.

[Visual Basic]

DataGrid1.Collapse -1

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | IsExpanded