Tuesday, June 05, 2007

DataTable already belongs to another DataSet

DataTable dtProto = new DataTable("DtProto");
dtProto = ds.Tables[0].Copy();
dtProto.TableName="DtProto";

dsMain.Tables.Add(dtProto);

No comments: