private void StudentsGV_CellContentClick(object sender, DataGridViewCellEventArgs e) { frmStudentAccount student = new frmStudentAccount(); student.uIDlbl.Text = (Int32.Parse(StudentsGV.Rows[e.RowIndex].Cells["LoginID"].Value.ToString())).ToString(); student.Show(); }
private void gradeBookToolStripMenuItem_Click(object sender, EventArgs e) { frmStudentAccount studentfrm = new frmStudentAccount(); studentfrm.uIDlbl.Text = this.uIDlbl.Text; studentfrm.StudentScheduleTab.SelectedIndex = 2; studentfrm.Show(); }
private void ChildGridView_CellClick(object sender, DataGridViewCellEventArgs e) { studID = Int32.Parse(ChildGridView.Rows[e.RowIndex].Cells["Userid"].Value.ToString()); frmStudentAccount studentfrm = new frmStudentAccount(); studentfrm.uIDlbl.Text = studID.ToString(); studentfrm.ParentsGB.Visible = false; studentfrm.Show(); }
private void ChildGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { studID = Int32.Parse(ChildGridView.Rows[e.RowIndex].Cells["Userid"].Value.ToString()); //selstud = db.Students.Where(s => s.StudentID == studID).ToList().Single(); frmStudentAccount studentfrm = new frmStudentAccount(); studentfrm.uIDlbl.Text = studID.ToString(); studentfrm.Show(); }