private void ShowEditFrm() { if (dgv.CurrentRow == null) { return; } AddEditStudentFrm frm = new AddEditStudentFrm(); frm.Parent = this.MdiParent; frm.EditMode = true; frm.StudentID = (string)dgv.CurrentRow.Cells[1].Value.ToString(); frm.ShowDialog(); LoadStudentToDGV("SELECT * FROM student"); }
private void ShowAddFrm() { AddEditStudentFrm frm = new AddEditStudentFrm(); frm.Parent = this.MdiParent; frm.ShowDialog(); LoadStudentToDGV("SELECT * FROM student"); }