DataGridViewRowCollection.GetRowState Method (Int32)

 
System_CAPS_noteNote

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

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: