DataTable dt = ds.Tables[0]; //获得 datatable DataView dv = new DataView(dt); DataTable dt2 = dv.ToTable(true, "GongXu"); // 去重,只针对 GongXu 字段