DataSet ds1 = new DataSet(); DataTable dt = (DataTable)gridControl1.DataSource; DataTable dt2 = dt.Copy();//如果不加这句话,则会出现DataTable属于另一个DataSet的错误 ds1.Tables.Add(dt2);//可以通过DataTable的Copy方法,复制一个新的 DataTable然后添加进去。