示例#1
0
文件: Form1.cs 项目: alannet/example
        private void button1_Click(object sender, System.EventArgs e)
        {
            short number = short.Parse(this.textBox1.Text);

            DataSet ds = new DataSet("FromRecordset");
            OleDbDataAdapter da = new OleDbDataAdapter();
            DataAccess.ProductsClass prod = new DataAccess.ProductsClass();
            Recordset rs = new ADODB.Recordset();

            rs = prod.Select_(number);

            da.Fill(ds, rs, "Products");

            dataGrid1.SetDataBinding(ds,"Products");
        }
示例#2
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            short number = short.Parse(this.textBox1.Text);

            DataSet          ds = new DataSet("FromRecordset");
            OleDbDataAdapter da = new OleDbDataAdapter();

            DataAccess.ProductsClass prod = new DataAccess.ProductsClass();
            Recordset rs = new ADODB.Recordset();


            rs = prod.Select_(number);



            da.Fill(ds, rs, "Products");

            dataGrid1.SetDataBinding(ds, "Products");
        }