DataGridView::DataGridViewTopRowAccessibleObject::Owner Property

 

Gets the DataGridView that contains the row of column headers.

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

public:
property DataGridView^ Owner {
	DataGridView^ get();
	void set(DataGridView^ value);
}

Property Value

Type: System.Windows.Forms::DataGridView^

The DataGridView that contains the row of column headers.

Exception Condition
InvalidOperationException

The Owner property has already been set.

.NET Framework
Available since 2.0
Return to top
Show: