Garner's header opened the scoring after 18 minutes before Ash Taylor equalised for Rovers just before the break.
But Garner, leading scorer for the Lilywhites this season, took his tally to 16 goals in all competitions with a 52nd-minute effort to move Grayson's team within six points of second-placed Wolves.
"The second goal was vital, you've got to expect the home team to have some sort of spell and until 35 minutes I thought we were outstanding," said Grayson.
"We created numerous chances and you always know that you need to finish those chances.
"I thought we responded well after the Tranmere equaliser and then saw the game out in a professional manner.
"We've got a big game next week against Leyton Orient and hopefully we can go and win that one.
"We've just got to try and win as many games as possible, and if those above us slip up then we want to be there to try and take advantage of that. We'll just keep approaching each game in a positive manner.
"There was great support from the travelling fans again, the fans have travelled in their numbers all season and they've been fantastic and sometimes it can feel like a home game for the team because of the numbers they travel in."
- Sports & Recreation