This error is occuring while adding one datatable from a dataset to another .\"DataTable already belongs to another DataSet.\"
dsformulaValues.Tables.Add(m_D
Try calling this method:
DataTable dt = dv.ToTable.DefaultView.ToTable(False, strSelectedCols)).Tables(0).Clone()
This will create a copy of the DataTable and assign it to the target DataSet:
DataTable
DataSet
ds.Tables.Add(dt)