DataGridViewCell.DataGridViewCellAccessibleObject.Parent 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.

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

public override AccessibleObject Parent {
	[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
	get;
}

Exception Condition
InvalidOperationException

The value of the Owner property is null.

The Parent property returns a DataGridViewRow.DataGridViewRowAccessibleObject, which represents the DataGridViewRow that contains the DataGridViewCell.

SecurityPermission

to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: