System.Windows.Forms.DataGrid.Collapse Method

Collapses child relations, if any exist for all rows, or for a specified row.

Syntax

public void Collapse (int row)

Parameters

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

Remarks

Use the DataGrid.IsExpanded(int) method to determine if a row is expanded.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0