private void can_Delete_MouseDown(object sender, MouseButtonEventArgs e) { connect = new CTUConnection(); // refreshens the 'Connection' class // try { connect.DeleteEmployee(int.Parse(ID)); connect.SelectEmployee(); DGV_Employee.ItemsSource = connect.table.DefaultView; } catch (Exception) { } }