@ -79,7 +79,7 @@ namespace eCompanies
}
foreach (Company c in (ObservableCollection<Company>)companyGrid.DataContext)
{
if (c.Name == null)
if ((c.Name == null) && (c.dataGridRowStatus != DataGridRowStatus.REMOVED))
switch (App.fieldHasNotFilled())
case MessageBoxResult.No: return;
@ -42,7 +42,8 @@ namespace eCompanies
currentCompany.Users.Clear();
foreach (Users u in (ObservableCollection<Users>)usersGrid.DataContext)
if (u.Login == null || u.Password == null || u.Name == null)
if ((u.Login == null || u.Password == null || u.Name == null)
&& (u.dataGridRowStatus != DataGridRowStatus.REMOVED))