该行已经属于另一个表 的解决方法
发布时间:2020-12-12 09:37:56 所属栏目:MsSql教程 来源:网络整理
导读:DataTable dt = new DataTable(); dt = ds.Tables["All"].Clone();//把All的结构传递给dt DataRow[] dr=this.dataSet31.Tables["Product"].Select("bc=1"); for(int i=0;idr.Length;i++) { //将数组元素加入表 dt.Rows.Add(dr[i]);//出错提示为:该行已经属于
DataTable dt = new DataTable(); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |