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
105
How to trap error when cel edit is applied
posted

I have an object based on CSLA that when bound to the WinGrid will run a SQL command to save the data when you change the cell value and move to another row (apply the edit). If an error occurs in the SQL satetement, how can I trap the error (catch an exception) being thrown? I tried Grid's Error event but that didn't help.

Parents
No Data
Reply
  • 469350
    Offline posted

    If the grid's data source raises an error, then this will trigger either the Error or CellDataError event of the grid. If neither of those events is firing, then the error must be occurring either before or after the grid has already completed the update.

    Keep in mind that the grid only updates the local data source. The grid has no interaction with the back end. So maybe the CSLA object is updating the back end asynchronously after the grid has already finished the update to the local data source objects.

Children