DataGridViewComboBoxCell::ObjectCollection::AddRange Method (DataGridViewComboBoxCell::ObjectCollection^)
.NET Framework (current version)
Adds the items of an existing DataGridViewComboBoxCell::ObjectCollection to the list of items in a DataGridViewComboBoxCell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Windows.Forms::DataGridViewComboBoxCell::ObjectCollection^
The DataGridViewComboBoxCell::ObjectCollection to load into this collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | value is null. |
| InvalidOperationException | One or more of the items in the value collection is null. |
| ArgumentException | The cell's DataSource property value is not null. |
| InvalidOperationException | The cell is in a shared row. |
.NET Framework
Available since 2.0
Available since 2.0
Show: