コード例 #1
0
        //----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();
        }
コード例 #2
0
 private void DataBind1(string keys = "")
 {
     EGV1.DataSource = proBll.GetProByProClass(M_Product.ClassType.IDC);
     EGV1.DataBind();
 }