Ashoka was the grandson of Chandragupta Maurya, not his son. After the war of Kalinga, Ashoka did indeed turn to Buddhism, not Jainism