private void button3_Click(object sender, EventArgs e) { yearC.updateSY(int.Parse(dgSY.SelectedRows[0].Cells[0].Value.ToString())); yearC.fillDataGridSY(ref dgSY); SchoolYearModel.setSchoolYear(dgSY.SelectedRows[0].Cells[1].Value.ToString()); string sy = yearC.getSyActivated(); SchoolYearModel sc = new SchoolYearModel(sy); auditTrail.addAudit(label7.Text, "Activate School Year" + " " + sy); MessageBox.Show("Succesfully Updated School Year"); }