DataGridViewComboBoxCell.ObjectCollection.IList.Add Method (Object)

 
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 an object to the collection.

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

int IList.Add(
	object item
)

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: