IDataGridViewEditingControl.EditingControlRowIndex 属性

定义

获取或设置该承载单元格的父行的索引。Gets or sets the index of the hosting cell's parent row.

public:
 property int EditingControlRowIndex { int get(); void set(int value); };
public int EditingControlRowIndex { get; set; }
member this.EditingControlRowIndex : int with get, set
Public Property EditingControlRowIndex As Integer

属性值

包含该单元格的行的索引; 如果没有父行, 则为-1。The index of the row that contains the cell, or -1 if there is no parent row.

注解

接口未定义相应ColumnIndex的属性。 IDataGridViewEditingControlThe IDataGridViewEditingControl interface does not define a corresponding ColumnIndex property. 您可以使用EditingControlDataGridView属性来检索父DataGridView控件, 并使用DataGridView.CurrentCellAddress属性来确定活动单元格的行索引和列索引。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.

适用于

另请参阅