Ejemplo n.º 1
0
        //自定义绑定数据
        private void requistionDate()
        {
            this.dataGridViewBOM.AutoGenerateColumns = false;// 关闭自动创建列
            string sql = "select * from HY_BomInfo where b_Audit<>'' order by b_ID desc";

            this.dataGridViewBOM.DataSource = hybombll.ExecuteQuery(sql);//5^1^a^s^p^x
        }
 //自定义绑定数据
 private void requistionDate(string sql)
 {
     this.dataGridViewBOM.AutoGenerateColumns = false;// 关闭自动创建列
     this.dataGridViewBOM.DataSource          = hybombll.ExecuteQuery(sql);
 }
Ejemplo n.º 3
0
 //自定义绑定数据
 private void requistionDate()
 {
     this.dataGridViewBOM.AutoGenerateColumns = false;// 关闭自动创建列
     HY_BLL.HY_BomlistBLL hybombll = new HY_BomlistBLL();
     string sql = "select * from HY_BomInfo order by b_ID desc";
     this.dataGridViewBOM.DataSource = hybombll.ExecuteQuery(sql);
 }