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

RowValidating is not working with NewRow

3 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 13 Feb 2013, 11:20 AM
I use `RowValidating` event for `RadGridView`. It works fine with regular rows, but new row is not getting red when I set `e.IsValid = false;` However, error message displays properly.
What should I do to get it working?

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 14 Feb 2013, 09:43 AM
Hi Andrew,

Does your model/object  implement the INotifyPropertyChanged interface ? If not, I would recommend you to implement it. Then all updates will happen automatically in RadGridView. 

I believe that this will resolve your problem.

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andrew
Top achievements
Rank 1
answered on 14 Feb 2013, 09:51 AM
I use EF, how do I implement INotifyPropertyChanged since classes are generated automatically?
0
Yoan
Telerik team
answered on 19 Feb 2013, 07:32 AM
Hello Andrew,

Thank you for clarifying that!

I have tested your scenario with our latest official release (Q3 2012 SP1) and everything is working as expected. For your convenience, I have attached a sample project.

Would it be possible to let me know what exactly version of RadGridView you are using?

Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or