DataTable already belongs to another DataSet
by
Narain_Siddharth
on
May 17, 2011
Category:
ASP.NET
|
Views:
903
|
Points:
5
|
Silver ★
|
Reply
|
|
Displaying error like "DataTable already belongs to another DataSet" when i trying to add datatable to another dataset. please provide the solution for this.
DataTable dt = new DataTable(); DataSet dsValue = new DataSet(); dsValue.Tables.Add(dt); DataSet dsResult = new DataSet(); DataTable dttemp = dsValue.Tables[0]; dsResult.Tables.Add(dttemp);
Bookmark and Share:
|
|