private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { accessDb adb = new accessDb(); this.tempBuyerId = adb.getData("buyer", "storeName", comboBox2.Text, "buyerId"); this.tempMail = adb.getData("buyer", "storeName", comboBox2.Text, "email"); }
private void fill() { accessDb ad = new accessDb(); DataSet ds = ad.getData("orders"); dataGridView1.DataSource = ds.Tables["orders"].DefaultView; }
private void fill() { accessDb ad = new accessDb(); DataSet ds = ad.getData("orders"); metroGrid1.DataSource = ds.Tables["orders"].DefaultView; DataSet ds2 = ad.getData("invoice"); metroGrid2.DataSource = ds2.Tables["invoice"].DefaultView; }