Why DataTable.Rows.ImportRow doesn't work when passing new created DataRow?

前端 未结 1 990
忘掉有多难
忘掉有多难 2020-12-12 01:17

I need to add newRow to MyHandler and it should add that row to the table that was built internally from the \"scheme\" that was passed to the MyHa

1条回答
  •  有刺的猬
    2020-12-12 02:08

    You should only use ImportRow to add rows from another DataTable. Per MSDN, rows created with DataTable.NewRow should be added with DataTable.Rows.Add.

    0 讨论(0)
提交回复
热议问题