DataGridView.DataGridViewAccessibleObject.GetChildCount Method ()


Returns the number of child objects belonging to an 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 objects belonging to the accessible object.

The GetChildCount method returns the number of visible rows in the DataGridView, plus 1 for the column header row if it is visible and 1 for each visible scroll bar. If there are no columns in the control, this method always returns 0.

.NET Framework
Available since 2.0
Return to top