DataGridViewSelectedRowCollection.IList.Remove(Object) Method

Definition

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

 virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
void IList.Remove (object? value);
abstract member System.Collections.IList.Remove : obj -> unit
override this.System.Collections.IList.Remove : obj -> unit
Sub Remove (value As Object) Implements IList.Remove

Parameters

value
Object

The object to remove from the DataGridViewSelectedRowCollection.

Implements

Exceptions

Always thrown.

Remarks

You cannot change the DataGridViewSelectedRowCollection class directly. To remove a row from 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