DataTable already belongs to another DataSet

后端 未结 10 1256
滥情空心
滥情空心 2020-12-24 11:14

This error is occuring while adding one datatable from a dataset to another .\"DataTable already belongs to another DataSet.\"

dsformulaValues.Tables.Add(m_D         


        
10条回答
  •  余生分开走
    2020-12-24 11:24

    I guess this means the DataTable belongs to another DataSet...

    You can serialze the DataTable to XML, then deserialize it into your target DataSet.

提交回复
热议问题