I am working on a form where end user can add a new item by pressing 'Add New' button. The problem is when a new item is created, it is not added at the bottom of the grid but at the start of the grid.
I have changed StartPosition property on datasource to Last.
I have changed Insertatend property on datasource to yes.
I have added following code on the create method on datasource level:
formdatasource_ds.last();
After placing the above code, now the new records are being created at the second last place, right above the last record on the grid.
It is important to mention that the Add New button is a command button with 'New' command which is set to create a new record in the grid. It has to do something with command button or now. If I need to replace command button with code, How can I create a new record on the grid using x++. can you share code for creating a new record ?? Thanks