DataGrid.Expand Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Displays child relations, if any exist, for all rows or a specific row.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Expand(
	int row


Type: System.Int32

The number of the row to expand. If set to -1, all rows are expanded.

The following code example demonstrates the use of this member.

Private Sub ExpandRow(ByVal myGrid As DataGrid, row As Integer)
   myGrid.Expand( row )
End Sub

.NET Framework
Available since 1.1
Return to top