DataGridViewCell.OwningRow Property

Definition

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; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewRow? OwningRow { get; }
[<System.ComponentModel.Browsable(false)>]
member this.OwningRow : System.Windows.Forms.DataGridViewRow
Public ReadOnly Property OwningRow As DataGridViewRow

Property Value

The DataGridViewRow that contains the cell, or null if the cell is not in a row.

Attributes

Applies to

See also