DeleteRows Method
Deletes rows from the specified index.
Syntax
[VB.NET] Public Sub DeleteRows(ByVal RowIndex As Integer, ByVal RowCount As Integer)
[C#] public void DeleteRows(int rowIndex, int rowCount);
Remarks
This method will delete RowCount rows beginning with the row at RowIndex. RowIndex is 0-based and will be the first row that is deleted.