I have a gridview that I am doing data entry in. I have the ValidationMode set to Row.
I want to save the edited data back to the database when the user moves off the row.
I am using the OnRowEditEnded event.
When I look at my ObservableCollection<T> data row in the OnRowEditEnded event, the data has not changed yet. So I can't use the OnRowEditEnded event to save the changes to the database. If I go back and edit the same row I see that the previous data changes have been pushed to my datasource. At what point is the edited data pushed to the ObservableCollection<T> datasource?
How can I save my edited gridview data to the database?
Thanks
5 Answers, 1 is accepted
There is such an issue with previous version which is already fixed.
I'm attaching a running sample application with new (SP1_Q1_2009) assemblies.
Do not hesitate to contact us if you have any further questions.
Best wishes,
Nedyalko Nikolov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thanks Nedyalko
That fixes me up.
Nedyalko,
I am updating the database when the row is changed. ValidationMode is Row. But if the user has put the grid in edit mode and is tabbing through the cells and rows, how can I tell if the data in a cell has changed? I don't want to update the database if the data has not changed. I must be missing a CellDataChanged event or something.
Thanks
It seems that you've hit a bug in GridView control. So I've updated your Telerik points.
As a workaround you can use RadGridView.CellEditEndedEvent which is raised only when value of the edited cell is changed.
Sorry for the inconvenience caused.
P.S. Let me know is this is a showstopper for you. I'll do my best to arrange a custom build when fix is ready.
All the best,
Nedyalko Nikolov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thanks for your help.