DataGridView.DataGridViewTopRowAccessibleObject.Owner Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the DataGridView that contains the row of column headers.

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

public DataGridView Owner { get; set; }

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: