Programmatically updating with detailview
You can read the extension documentation and/or view a demo of this extension, to understand usage.This article explains how you can use the extension with additional settings to your controller and view objects.I am using auto Generate Rows=true because by Object Data Source is dynamic and I may have different columns. I put a breakpoint in the Data Bound event and I see that sender.Data Item is null when I call data Bind from by insert click event handler.Errors might occur because you tried to set a field to a value that was rejected by a server-side validation rule, or by the database server.The List controls on a UX component are the fundamental building block of disconnected applications.
This all 'just works' - it is completely transparent to the user.
If your application terminates for any reason (for example, your mobile device runs out of power), the edits that you made are never lost (because they are persisted with the List data in Local storage).
When your application is restarted, the Lists are all automatically reloaded from the persisted data, and all form variables are automatically reloaded.
When a row is selected I show the Grid View with a default mode of Edit.
This shows my fields with text boxes for changing the data. Now I need to put the Details View into Insert mode when a button is clicked.The data in the List control can be thought of as an 'in-memory' database that contains a subset of the master database on the server.