DataTable dt = (DataTable)gridView1.GridControl.DataSource;
DataRow[] drr = dt.Select(gridView1.RowFilter);
foreach (DataRow dr in drr)
{
dr["SelectFlag"] = "";
}
gridView1.GridControl.DataSource = dt;
gridView1.GridControl.Show();
快速全选筛选之后的gridview值。
类似方法也可将datarow[]组装为新的datatable