DataGridViewComboBoxCell.ObjectCollection.AddRange Method (DataGridViewComboBoxCell.ObjectCollection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public void AddRange(
	DataGridViewComboBoxCell.ObjectCollection value
)

Exception Condition
ArgumentNullException

value is null.

InvalidOperationException

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