In my solution I have to create DVWP in which user can enter Row Limit as Property and that amount of rows will be displayed in WebPart.
I used built In Functionality of DVWP for Setting Row limit but that's not my solution.
Can any body Help me.
Not sure if you can do it using code but here's its happening in this article, they are setting row limits using UI.
Hope it helps.