fix FormCourse

This commit is contained in:
DavidMakarov 2024-05-08 09:52:33 +04:00
parent 39bc6d12bd
commit fba63e61f6

View File

@ -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
{