//----EGV private void DataBind(string key = "") { DataTable dt = proBll.GetProByProClass(M_Product.ClassType.IDC); if (!string.IsNullOrEmpty(key)) { dt.DefaultView.RowFilter = "ProName like '%" + key + "%'"; dt = dt.DefaultView.ToTable(); } EGV.DataSource = dt; EGV.DataBind(); }
private void DataBind1(string keys = "") { EGV1.DataSource = proBll.GetProByProClass(M_Product.ClassType.IDC); EGV1.DataBind(); }