public void selectedStuRowDetails() { if (isSelected == true) { Student objstuSemAllocationData = new Student(); objstuSemAllocationData.ObjSemesters = new Semesters(); objstuSemAllocationData.ObjSubjects = new Subjects(); objstuSemAllocationData.StudentID = SelectedStudentID; objstuSemAllocationData.universityID = cmbStudentID.Text; objstuSemAllocationData.FullName = txtStudentName.Text; objstuSemAllocationData.ObjSemesters.SemesterID = SelectedSemesterID; objstuSemAllocationData.ObjSemesters.SemesterCode = cmbSemster.Text; objstuSemAllocationData.ObjSemesters.SemesterName = selectedSemesterName; objstuSemAllocationData.ObjSubjects.SubjectID = SelectedSubjectID; objstuSemAllocationData.ObjSubjects.SubjectCode = selectedSubCode; objstuSemAllocationData.StuSemConfigID = SelectedStuSemConfigID; systemManager objsystemManagerUpdateSem = new systemManager(); if (updateSelected == true) { objsystemManagerUpdateSem.updateStuSemConfig(objstuSemAllocationData); } if (deleteSelected == true) { objsystemManagerUpdateSem.DeleteStuSemConfig(objstuSemAllocationData); } } }