DataGridViewComboBoxCell.ObjectCollection.AddRange Method

Definition

Adds a group of items to the list of items for a DataGridViewComboBoxCell.

Overloads

AddRange(Object[])

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

AddRange(DataGridViewComboBoxCell+ObjectCollection)

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

AddRange(Object[])

Source:
DataGridViewComboBoxCell.ObjectCollection.cs
Source:
DataGridViewComboBoxCell.ObjectCollection.cs
Source:
DataGridViewComboBoxCell.ObjectCollection.cs

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

public void AddRange (params object[] items);

Parameters

items
Object[]

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

-or-

An Array of Object values.

Exceptions

items is null.

One or more of the items in the items array is null.

-or-

The cell is in a shared row.

The cell's DataSource property value is not null.

See also

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

AddRange(DataGridViewComboBoxCell+ObjectCollection)

Source:
DataGridViewComboBoxCell.ObjectCollection.cs
Source:
DataGridViewComboBoxCell.ObjectCollection.cs
Source:
DataGridViewComboBoxCell.ObjectCollection.cs

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

public void AddRange (System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection value);

Parameters

Exceptions

value is null.

One or more of the items in the value collection is null.

-or-

The cell is in a shared row.

The cell's DataSource property value is not null.

See also

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9