DataGridViewComboBoxCell.ObjectCollection.RemoveAt Method (Int32)

 

Removes the object at the specified index.

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

public void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

The zero-based index of the object to be removed.

Exception Condition
ArgumentOutOfRangeException

index is less than 0 or greater than the number of items in the collection minus one.

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: