forked from DavidMakarov/StudentEnrollment
fix FormCourse
This commit is contained in:
parent
39bc6d12bd
commit
fba63e61f6
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user