DataGridViewCell.OwningRow Property

 

Gets the row that contains this cell.

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

[BrowsableAttribute(false)]
public DataGridViewRow OwningRow { get; }

Property Value

Type: System.Windows.Forms.DataGridViewRow

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

.NET Framework
Available since 2.0
Return to top
Show: