System.Windows.Forms.DataGrid.IsSelected Method

Gets a value indicating whether a specified row is selected.

Syntax

public bool IsSelected (int row)

Parameters

row
The number of the row you are interested in.

Returns

true if the row is selected; otherwise, false.

Remarks

Use this method with the DataGrid.Select(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