In particular commonwealth games, a female participant won both the silver and gold medal for a single event.

How can this be possible?

This is quite possible. Suppose the participant won a silver medal and then, the gold medalist was disqualified for some reason. In this case, the silver medalist will be awarded the gold medal.