This is a migrated thread and some comments may be shown as answers.

How to determine if the user changed the data?

4 Answers 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Frank Wanicka
Top achievements
Rank 1
Frank Wanicka asked on 27 Oct 2010, 08:11 PM
I am sure I am missing something obvious in the documentation, but I can't seem to find it. Is there anything built into the GridView control so I can determine if the user actaully changed the data after they entered into edit mode? I expected something in the RowEditEnded event to indicate that. I see the OldValues collection, so i know you are keeping track of the original data, but I don't want to have to write code to manually compare the new old data for every field, especially when the grid could be generated dynamically.

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Oct 2010, 10:26 AM
Hello Frank Wanicka,

If you implement the INotifyPropertyChanged Interface, you may follow up the changes of the properties. Let me know if you need any further assistance.
 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Frank Wanicka
Top achievements
Rank 1
answered on 28 Oct 2010, 01:08 PM
That didn't answer my question at all. Please try again.
0
Maya
Telerik team
answered on 28 Oct 2010, 04:12 PM
Hi Frank Wanicka,

Using the INotifyPropertyChanged Interface enables you to follow up the changes made in the values of the properties, without the need of subscribing to any events. I am sending you a sample project illustrating how to implement it. 

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Frank Wanicka
Top achievements
Rank 1
answered on 28 Oct 2010, 04:17 PM
I know about INotifyPropertyChanged . My question was whether there is anything built into your GridView control to determine whether the data in a row is dirty.

I'll assume the answer is no based on your response. Thanks.
Tags
GridView
Asked by
Frank Wanicka
Top achievements
Rank 1
Answers by
Maya
Telerik team
Frank Wanicka
Top achievements
Rank 1
Share this question
or