private void btnEdit_Click(object sender, EventArgs e)
        {
            string studentNumber = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();

            FrmAddStudentPersonalInfo frmAddStudentInfo = new FrmAddStudentPersonalInfo(studentNumber);

            frmAddStudentInfo.ShowDialog(this);
        }
        private void btnNew_Click(object sender, EventArgs e)
        {
            DialogResult dr2;

            FrmAddStudentPersonalInfo frmAddStudentInfo = new FrmAddStudentPersonalInfo();
            DialogResult dr = frmAddStudentInfo.ShowDialog(this);

            while (dr == DialogResult.OK)
            {
                ViewStudentPersonalInfo();
                dr2 = frmAddStudentInfo.ShowDialog(this);

                if (dr2 == DialogResult.Cancel)
                {
                    break;
                }
            }
        }