Crystal Palace manager Dougie Freedman praised his side's fighting spirit as a Sean Scannell header in injury time snatched the points against Barnsley.
Freedman's side were heading towards their eighth draw in a 10-match unbeaten run when the 21-year-old took advantage of an error by Nathan Doyle.
With Palace now just six points off sixth place, Freedman is not ruling out a late push for the playoffs.
"It may be one step too far but these players have a never-say-die attitude," he said.
"We're unbeaten in 10 now so we're not a team that lies down so anything is possible. It just shows what resilience we have got.
"The belief that we showed to keep on going when the performance wasn't at its best is why we are doing so well this year.
"On the night Barnsley had all the possession but we've ended up with the points."
Freedman added: "I'm delighted that Sean Scannell ended up with the winner. He's a talented kid who has been working hard and he deserves to do well."
Barnsley had the better of the first half and saw Palace goalkeeper Julian Speroni save well from Matt Done's shot and a header from Andy Gray.
The hosts improved after the break and should have gone ahead when Glenn Murray chose to pass and not volley Darren Ambrose's deep cross.
Scannell went close minutes later, while Craig Davies saw his dipping volley just miss the target at the other end.
The game was heading for a stalemate in the second minute of injury time when Barnsley defender Doyle misplaced his pass and played the ball out for a throw-in.
Jonathan Parr took it quickly to Dikgacoi and the South African's cross picked out Scannell at the back post to head home the winner.
After suffering their seventh defeat in eight matches, Barnsley manager Keith Hill admitted conceding such a late goal had been hard to take.
"I'm devastated," he said.
"I don't know what I have done to deserve this kind of misfortune.
"The performance was brave but to concede a goal so late is unbelievable.
"The players are hurting and I'm hurting because 0-0 would have been a fair result. We played good football up to the final third but I'm just numb.
"I can't ask any more from the players but we just have to accept that things aren't going our way at the moment."