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