From fba63e61f648a4085d1464df42b296d0ed9573ff Mon Sep 17 00:00:00 2001 From: DavidMakarov Date: Wed, 8 May 2024 09:52:33 +0400 Subject: [PATCH] fix FormCourse --- StudentEnrollment/StudentEnrollmentView/FormCourses.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StudentEnrollment/StudentEnrollmentView/FormCourses.cs b/StudentEnrollment/StudentEnrollmentView/FormCourses.cs index 56368e5..428105c 100644 --- a/StudentEnrollment/StudentEnrollmentView/FormCourses.cs +++ b/StudentEnrollment/StudentEnrollmentView/FormCourses.cs @@ -26,8 +26,8 @@ namespace StudentEnrollmentView if (list != null) { dataGridView.DataSource = list; - dataGridView.Columns["Id"].Visible = false; - dataGridView.Columns["FacultyId"].Visible = false; + dataGridView.Columns["course_id"].Visible = false; + dataGridView.Columns["facultyid"].Visible = false; } _logger.LogInformation("Загрузка направлений"); } @@ -71,7 +71,7 @@ namespace StudentEnrollmentView if (MessageBox.Show("Удалить запись?", "Вопрос", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { - int id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); + int id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["course_id"].Value); _logger.LogInformation("Удаление направления"); try {