DataGridView::HitTestInfo::RowIndex Property

 

Gets the index of the row that contains the coordinates described by the current DataGridView::HitTestInfo.

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

public:
property int RowIndex {
	int get();
}

Property Value

Type: System::Int32

The index of the row in the DataGridView that contains the coordinates described by the current DataGridView::HitTestInfo.

The following code example illustrates the use of this property. This example is part of a larger example available in the DataGridView::Columns property reference topic.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: