Best way add a new column with sequential numbering in an existing data table

前端 未结 3 1963
囚心锁ツ
囚心锁ツ 2021-02-11 02:03

I have a non empty datatable . What is the best way to add another column to it that has sequential numbering starting from 1.

I tried the following code. But did not wo

3条回答
  •  面向向阳花
    2021-02-11 02:23

    You'll have to build a whole new datatable for this and manually deep-copy each row one by one from the old table to the new. Sorry.

提交回复
热议问题