DataGridViewCell.OwningRow DataGridViewCell.OwningRow DataGridViewCell.OwningRow DataGridViewCell.OwningRow Property

定义

获取包含此单元格的行。Gets the row that contains this cell.

public:
 property System::Windows::Forms::DataGridViewRow ^ OwningRow { System::Windows::Forms::DataGridViewRow ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewRow OwningRow { get; }
member this.OwningRow : System.Windows.Forms.DataGridViewRow
Public ReadOnly Property OwningRow As DataGridViewRow

属性值

包含该单元格的 DataGridViewRow;如果该单元格不在任何一行中,则为 nullThe DataGridViewRow that contains the cell, or null if the cell is not in a row.

适用于

另请参阅