Hello,
I'm using RadGrid 2009.3 with LLBLGenProDataSource2 data source control and the following settings:
I'm using RadGrid 2009.3 with LLBLGenProDataSource2 data source control and the following settings:
grid.MasterTableView.EditMode =
GridEditMode.EditForms;
grid.MasterTableView.EditFormSettings.EditFormType =
GridEditFormType.AutoGenerated;
Whenever user attempts to Update a record that results in the exception, I handle the exception through ItemUpdated event:
| private static void grid_ItemUpdated(object source, GridUpdatedEventArgs e) |
| { |
| if (e.Exception != null) |
| { |
| HandleInsertUpdateException((source as RadGrid), e, false); |
| e.ExceptionHandled = true; |
| e.KeepInEditMode = true; |
| } |
| } |
where HandleInsertUpdateException is my function for printing the error message.
The problem I'm faced with is this: whenever the user hits the Cancel link, the updated (incorrect) value still gets displayed in the grid.
What is the proper way to refresh the grid to have it display the original value whenever Update fails?