System.Windows.Forms.DataGrid.Select Method

Selects a specified row.

Syntax

public void Select (int row)

Parameters

row
The index of the row to select.

Remarks

Use this method with the DataGrid.IsSelected(int), DataGrid.UnSelect(int), and DataGrid.ResetSelection methods to manipulate the selection state of a particular row.

Requirements

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