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"); }
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"); }