diff --git a/project/ProjectTourAgency/Forms/FormClients.cs b/project/ProjectTourAgency/Forms/FormClients.cs index b557f14..dd15c95 100644 --- a/project/ProjectTourAgency/Forms/FormClients.cs +++ b/project/ProjectTourAgency/Forms/FormClients.cs @@ -98,6 +98,7 @@ namespace ProjectTourAgency.Forms private bool TryGetIdentifierFromSelectedRow(out int id) { id = 0; + if(dataGridViewData.SelectedRows.Count < 1) { MessageBox.Show("Нет выбранной записи", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);