Expand Method
TOC
Collapse the table of content
Expand the table of content

DataGrid.Expand Method (Int32)

 

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
)

Parameters

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
Show:
© 2016 Microsoft