To add a new row, you can call the View.AddNewRow method.
If your task is to insert a row in a specific position, you need to use methods of your datasource. To have generic code that works with any datasource, just cast this datasource to the IList interface and call its Insert method.
Please let us know whether or not you find this solution helpful.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.