protected override void button1_Click(object sender, EventArgs e) { FrmProductEdit frm = new FrmProductEdit(); frm.ShowDialog(); refresh(); }
protected override void button2_Click(object sender, EventArgs e) { Products pp = (Products)dataGridView1.SelectedRows[0].DataBoundItem; FrmProductEdit frm = new FrmProductEdit(pp); frm.ShowDialog(); refresh(); }