DataGridViewComboBoxCell::ObjectCollection::IList::Add Method (Object^)

 

Adds an object to the collection.

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

private:
virtual int Add(
	Object^ item
) sealed = IList::Add

Parameters

item
Type: System::Object^

The object to add to the collection.

Return Value

Type: System::Int32

The position in which to insert the new element.

Exception Condition
ArgumentNullException

item is null.

ArgumentException

The cell's DataSource property value is not null.

InvalidOperationException

The cell is in a shared row.

This member is an explicit interface member implementation. It can be used only when the DataGridViewComboBoxCell::ObjectCollection instance is cast to an IList interface.

.NET Framework
Available since 2.0
Return to top
Show: