public insSeedsAndMaterial() { InitializeComponent(); this.comboBox1.DisplayMember = "cat_name"; this.comboBox1.ValueMember = "cat_id"; this.comboBox1.DataSource = cat.getCategoriesInfo(); }
private void DataEntry_Load(object sender, EventArgs e) { try { this.ComboBox2Store.DisplayMember = "store"; this.ComboBox2Store.ValueMember = "id"; this.ComboBox2Store.DataSource = StoreMng.selectStore(); this.comboBox1.DisplayMember = "cat_name"; this.comboBox1.ValueMember = "cat_id"; this.comboBox1.DataSource = cat.getCategoriesInfo(ComboBox2Store.SelectedValue.ToString()); this.ComboBoxCatStock.DisplayMember = "store"; this.ComboBoxCatStock.ValueMember = "id"; this.ComboBoxCatStock.DataSource = StoreMng.selectStore(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void bntAdd_Click(object sender, EventArgs e) { PL.insSeedsAndMaterial frm = new insSeedsAndMaterial(); frm.ShowDialog(); this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo(); }
public categoriesQue() { InitializeComponent(); this.dataGridView1.DataSource = cats.getCategoriesInfo("1"); }
private void bntAdd_Click(object sender, EventArgs e) { PL.DataEntry frm = new DataEntry(); frm.ShowDialog(); this.bunifuCustomDataGrid1.DataSource = cat.getCategoriesInfo("1"); }