void grdStudent_DoubleClick(object sender, EventArgs e) { var stu = (View)this.grdStudent.SelectedRows[0].DataBoundItem; var update = new UpdateForm(stu.ID); update.ShowDialog(); this.LoadAll(); }
void IndexForm_DoubleClick(object sender, EventArgs e) { var @class = (PM14008)this.grdStudents.SelectedRows[0].DataBoundItem; var updateForm = new UpdateForm(@class.id); updateForm.ShowDialog(); this.LoadAllClasses(); }