DataGridViewRow.DataGridViewRowAccessibleObject.GetChildCount Method ()

 

Returns the number of children belonging to the accessible object.

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

public override int GetChildCount()

Return Value

Type: System.Int32

The number of child accessible objects that belong to the DataGridViewRow.DataGridViewRowAccessibleObject corresponds to the number of visible columns in the DataGridView. If the DataGridView.RowHeadersVisible property is true, the GetChildCount method includes the DataGridViewRowHeaderCell in the count of child accessible objects.

Exception Condition
InvalidOperationException

The value of the Owner property is null.

.NET Framework
Available since 2.0
Return to top
Show: