Hi Ankit,
I provided a working sample and I'm expecting from you the error code and description returned by the DI-API.
Besides this, check the way you access a given line in the Items.PriceList collection... I'm pretty sure by reading your code that the error is here.
Without these info, I cannot do more.
Regards,
Eric