DataGridViewRowCollection Class
Represents a collection of DataGridViewRow objects in a DataGridView control.
Namespace: elsystem.windows.forms
Properties
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Type | Description | |
Count | int | Gets the number of rows in the collection. Use of CountTotal is preferred (see below). | |
CountTotal | int | Gets the total number of rows in the collection. The count will include the “blank” row if DataGridView is set to allow users to add rows. Since this property includes the blank row in the number of rows when the user is allowed to add rows, the use of CountTotal is preferred to the use of the Count property. | |
Items(index) | int | Gets the DataGridViewRow at the specified index. |
Methods
Name | Description | |
Add(row) | Adds a row to the collection. | |
Add(values) | Adds a row to the collection and places values into the cells. | |
At(int) | The row indexer. | |
Clear | Clears the collection. | |
Insert(index, row) | Inserts a row into the collection at the specified index position, and populates the cells with the specified DataGridViewRow objects. | |
Remove(row) | Removes the named row from the collection. | |
RemoveAt(index) | Removes the row at the specified index position from the collection. |