Had a similar issue 2 days ago. Replaced both batteries, when I drove away from Autozone the lights, DIC and PRNDL all worked but the gauges were all off. Restarting did not help. I pulled the negative off both batteries, gave it thirty seconds, and then reconnected. Bingo, gauges worked again. The computer in the dash must have gotten in a bad state, probably due to a brown-out condition.
Try pulling negatives on the battery. When you reconnect try to make sure you don't bounce the connection so the ground only connects once.
Good luck.