Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
Dundas was to be elected in a simple formality, returned uncontested. This was complicated, however, when Joseph Clayton Jennings, a barrister and reformer, "arrived on the scene", making it unexpectedly a contested election, and found a person who claimed to be entitled to vote in his favour. A voter was therefore also brought in for Dundas. Dashwood, acting as the returning officer, rejected the ballot for Jennings, and Dundas was duly elected with one vote.
Dundas left for India two years later, causing another by-election, wherein Wood procured the seat for William Garrow - another reformist barrister, who won it uncontested and thereby made his entry in Parliament.