DataGridViewComboBoxCell::ObjectCollection::AddRange Method (DataGridViewComboBoxCell::ObjectCollection^)

 

Adds the items of an existing DataGridViewComboBoxCell::ObjectCollection to the list of items in a DataGridViewComboBoxCell.

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

public:
void AddRange(
	DataGridViewComboBoxCell::ObjectCollection^ value
)

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
Return to top
Show: