DataGridViewCellCollection.IList.RemoveAt(Int32) Method
Definition
Removes the DataGridViewCell at the specified index.
virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
Sub RemoveAt (index As Integer) Implements IList.RemoveAt
Parameters
- index
- Int32
The position at which to remove the DataGridViewCell.
Implements
Exceptions
The row that owns this DataGridViewCellCollection already belongs to a DataGridView control.
Remarks
Once you add the row to a control, the number of cells it contains always matches the number of columns in the control, so this method is no longer useful.
This member is an explicit interface member implementation. It can be used only when the DataGridViewCellCollection instance is cast to an IList interface.