Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
XamDataGrid interacting with a database....
posted

Hi,

Just wondering if there's a best practice for using a XamDataGrid to retrieve data from a database and then easily update back tot he database table inserts, deletes and changes made by the user?  I currently have something partially working using a SQLDataAdapter and DataTable but it doesn't seem very tidy so I'm thinking there must be a better way.

Any samples would be appreciated as well.

Troy

  • 69686
    posted

    Hello Troy,

    The XamDataGrid is bound to the data through the DataSource property (IEnumerable). Any changes made to the XamDataGrid's records will be automatically reflected in the local copy of the data source that you have provided. How you would update the back-end data base or commit any changes are really up to the specific scenario.