Пример #1
0
        private void dgvStudView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            StudentGradeForm sgf = new StudentGradeForm();

            sgf.txtscid.Text  = dgvStudView.CurrentRow.Cells[0].Value.ToString();
            sgf.txtFname.Text = dgvStudView.CurrentRow.Cells[1].Value.ToString() + " " + dgvStudView.CurrentRow.Cells[2].Value.ToString() + " " + dgvStudView.CurrentRow.Cells[3].Value.ToString();
            sgf.txtSY.Text    = dgvStudView.CurrentRow.Cells[4].Value.ToString();
            this.Close();
            sgf.dgvGrade.Enabled = true;
            sgf.ShowDialog();
        }
Пример #2
0
        private void GradestoolStripMenuItem10_Click(object sender, EventArgs e)
        {
            StudentGradeForm sg = new StudentGradeForm();

            sg.ShowDialog();
        }