DataGridViewComboBoxCell::ObjectCollection::AddRange Method (array<Object^>^)

 

Adds one or more items to the list of items for a DataGridViewComboBoxCell.

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

public:
void AddRange(
	... array<Object^>^ items
)

Parameters

items
Type: array<System::Object^>^

One or more objects that represent items for the drop-down list.

-or-

An Array of Object values.

Exception Condition
ArgumentNullException

items is null.

InvalidOperationException

One or more of the items in the items array 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: