我想克隆从一个数据集到其他数据集的数据表的Datable,但它不起作用。从一个数据集到其他数据集的数据表克隆数据表
Dataset ds = new Dataset();
ds.Tables.Add("key");
ds.Table["key"] = cust.Tables[0].Clone(); // This line is not working
上面的代码,给出以下错误
Property or indexer 'System.Data.DataTableCollection.this[int]' cannot be assigned to — it's read only
卡斯特也是一个数据集。有人可以帮助我解决这个
你说的“不工作”是什么意思? – Marco
数据集,但它不起作用。怎么样? –
@AjayPandya它给错误属性或索引'System.Data.DataTableCollection.this [int]'不能被分配给 - 它是只读的 – Richa