private void selectedStuRowDetails()
        {
            if (isSelected == true)
            {
                Department objDepartment = new Department();
                objDepartment.DepartmentName = txtDeptName.Text;
                objDepartment.DepartmenCode  = txtDeptCode.Text;
                objDepartment.DepartmentID   = selectedDeptID;

                systemManager objSystemManager = new systemManager();
                if (updateSelected == true)
                {
                    objSystemManager.updateDepartments(objDepartment);
                    updateSelected = false;
                }
                if (deleteSelected == true)
                {
                    objSystemManager.deleteDepartments(objDepartment);
                    deleteSelected = false;
                }
            }
        }