DataGridViewComboBoxCell.ObjectCollection.AddRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
The DataGridViewComboBoxCell.ObjectCollection to load into this collection.
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
.