DataGridViewRow::DataGridViewRowAccessibleObject::GetChildCount Method ()
.NET Framework (current version)
Returns the number of children belonging to the accessible object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return Value
Type: System::Int32The 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
Available since 2.0
Show: