RemoveAt

RowCollection.RemoveAt method

从表中删除指定位置的行。

public void RemoveAt(int firstRowIndex, bool withAttachedRows)
范围类型描述
firstRowIndexInt32要删除的行的索引。
withAttachedRowsBooleanTrue 也删除所有附加的行。

也可以看看