DataGridViewRowCollection.GetRowState Method (Int32)

 

Gets the state of the row with the specified index.

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

public virtual DataGridViewElementStates GetRowState(
	int rowIndex
)

Parameters

rowIndex
Type: System.Int32

The index of the row.

Return Value

Type: System.Windows.Forms.DataGridViewElementStates

A bitwise combination of DataGridViewElementStates values indicating the state of the specified row.

Exception Condition
ArgumentOutOfRangeException

rowIndex is less than zero and greater than the number of rows in the collection minus one.

.NET Framework
Available since 2.0
Return to top
Show: