Grid View Row Collection. Remove At(Int32) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the row at the specified position from the collection.
public: virtual void RemoveAt(int index);
public virtual void RemoveAt (int index);
abstract member RemoveAt : int -> unit override this.RemoveAt : int -> unit
Public Overridable Sub RemoveAt (index As Integer)
The position of the row to remove.
index is less than zero and greater than the number of rows in the collection minus one.
The associated DataGridView control is performing one of the following actions that temporarily prevents new rows from being added:
Selecting all cells in the control.
Clearing the selection.
This method is being called from a handler for one of the following DataGridView events: