At the close of play on the second day, Haryana were 271 for eight in reply Uttar Pradesh's 227 all out at the Dr Akhilesh Das Stadium.
Resuming the day at 32 for one, the visitors rode on Dewan's knock to take the honours even as medium pacers Ankit Rajpoot (4/66) and Imtiaz Ahmed (3/86) put up a very spirited show.
Dewan spent 347 minutes during which he faced 266 balls and struck 14 fours.
Sharma hit nine fours and a six while facing 90 deliveries.
Barring Dewan and Sharma's knocks, and a 36 by Rahul Dalal, the Haryana batsmen struggled to come to terms with the host bowlers.
Also Read
Jayant Yadav (23) and Mohit Sharma (5) were at the crease when stumps were drawn.
Brief scores:
Uttar Pradesh 1st innings: 227 all out in 73 overs
Haryana 1st innings: 271/8 in 99 overs (Rahul Dewan 93, Joginder Sharma 65; Ankit Rajpoot 4/66, Imtiaz Ahmed 3/86.