DataView get_dv()
{
DataTable data = new ZcKcbAction().GetZccx( txtZcmc.Text.Trim(), "%", "%" + txtSyr.Text.Trim() + "%","");
if (data != null)
{
DataView dv = data.DefaultView;
string Filter_Str = "syxz in('00','12','22','52','62','72','92','a2','b2')";
dv.RowFilter = Filter_Str;
return dv;
}
return null;
}
主要是通过DataView的 RowFilter方法来进行过滤。