DataTable already belongs to another DataSet this error we get when we are tring to add table into datatset which is already belonging to another table. So whats the solution?
Its simple
Use Copy() method of DataTable to add to your DataSet eg.
yourDataSet.Tables.Add(yourDataTable.Copy()); //here yourDataSet is your Dataset and yourDataTable is DataTable.
Cheers
Pankaj