且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何根据条件动态地在每行或每个行之后或之后将新行添加到数据表中

更新时间:2023-12-03 18:51:10

我认为你正在寻找这种方法: DataRowCollection.InsertAt(..) [ ^ ]



Eg

I think you're looking for this method: DataRowCollection.InsertAt(..)[^]

E.g.
myDataTable.Rows.InsertAt(newRow, index);