I have a radgrid control bind to an object datasource. In the business layer, I have some validation check to make sure input data is valid and if it not the business layer wil throw an exception.
In the ItemUpdated event of the radgrid, I have write some logic to catch the exception from the business layer:
Everything works fine except that the edit form of radgrid control does not retain the new value when server-side validation failed.
I was trying to apply that logic to a form view / detail view and everything works as expected, when server-side validation failed, the new values are remain and the user can modify the invalid one and perform update action again.
Am I missing some thing with the radgrid control ?
Any help would be appreciated.
In the ItemUpdated event of the radgrid, I have write some logic to catch the exception from the business layer:
If e.Exception IsNot Nothing Then |
e.ExceptionHandled = True |
e.KeepInEditMode = True |
Response.Write(e.Exception.Message) |
End If |
Everything works fine except that the edit form of radgrid control does not retain the new value when server-side validation failed.
I was trying to apply that logic to a form view / detail view and everything works as expected, when server-side validation failed, the new values are remain and the user can modify the invalid one and perform update action again.
Am I missing some thing with the radgrid control ?
Any help would be appreciated.