IDataGridViewEditingControl::EditingControlRowIndex Property

 

Gets or sets the index of the hosting cell's parent row.

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

property int EditingControlRowIndex {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The index of the row that contains the cell, or –1 if there is no parent row.

The IDataGridViewEditingControl interface does not define a corresponding ColumnIndex property. You can use the EditingControlDataGridView property to retrieve the parent DataGridView control and use the DataGridView::CurrentCellAddress property to determine the row and column indexes of the active cell.

.NET Framework
Available since 2.0
Return to top
Show: