DataGridViewCell.DataGridViewCellAccessibleObject.GetChildCount Method ()


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

Returns the number of children that belong to the DataGridViewCell.DataGridViewCellAccessibleObject.

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

public override int GetChildCount()

Return Value

Type: System.Int32

The value 1 if the DataGridViewCell that owns DataGridViewCell.DataGridViewCellAccessibleObject is being edited; otherwise, –1.

Exception Condition

The value of the Owner property is null.

.NET Framework
Available since 2.0
Return to top