DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange DataGridViewComboBoxCell.ObjectCollection.AddRange Method

Definition

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

Overloads

AddRange(Object[]) AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

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

AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection)

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

AddRange(Object[]) AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

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

public:
 void AddRange(... cli::array <System::Object ^> ^ items);
public void AddRange (params object[] items);
member this.AddRange : obj[] -> unit
Public Sub AddRange (ParamArray items As Object())

Parameters

items
Object[]

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

-or-

An Array of Object values.

Exceptions

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

-or-

The cell is in a shared row.

See also

AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection) AddRange(DataGridViewComboBoxCell+ObjectCollection)

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);
public void AddRange (System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection value);
member this.AddRange : System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection -> unit
Public Sub AddRange (value As DataGridViewComboBoxCell.ObjectCollection)

Parameters

Exceptions

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

-or-

The cell is in a shared row.

See also

Applies to