GetChildCount Method

DataGridViewCell.DataGridViewCellAccessibleObject.GetChildCount Method ()

 

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
InvalidOperationException

The value of the Owner property is null.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft