相关疑难解决方法(0)

在预定义索引处将数据行添加到数据表

我有一个包含一列的数据表:

this.callsTable.Columns.Add("Call", typeof(String));
Run Code Online (Sandbox Code Playgroud)

然后我想在该数据表中添加一行,但是想要给出一个特定的索引,注释的数字是所需的索引:

this.callsTable.Rows.Add("Legs"); //11
Run Code Online (Sandbox Code Playgroud)

更新:

  • 必须能够处理输入具有唯一索引的数百行.
  • 无论表中是否有足够的行用于insertat函数,索引必须是我定义的.

c# wpf datatable datarow datacolumn

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

c# ×1

datacolumn ×1

datarow ×1

datatable ×1

wpf ×1