Edit

Bagikan melalui


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[])

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

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

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

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