DataGridViewSelectedRowCollection.IList.Add(Object) DataGridViewSelectedRowCollection.IList.Add(Object) DataGridViewSelectedRowCollection.IList.Add(Object) Method

Definition

Implements the Add(Object) method. Always throws NotSupportedException.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

Parameters

value
Object Object Object

The item to be added to the DataGridViewSelectedRowCollection.

Returns

The index at which value was inserted.

Implements

Exceptions

Remarks

You cannot change the DataGridViewSelectedRowCollection class directly. To add a row to the DataGridViewSelectedRowCollection, use the DataGridViewBand.Selected property.

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

Applies to

See also