1

I am using the INotifyDataError interface to add errors to an object. If the object is displayed in a RadGridView, the user is prevented from changing the focus from current cell if that property has an error. I would like to allow this.

For example, let's say I have

class Foo
{
    public string A { get; set; }
    public bool B { get; set; }
}

Now, let's say my validation logic is

if (A == "x" && B == false)
{
    //Add error to A
}

Now, let's say this is a new record where A = null, B = false. If the user enters "x" for A, the record will become invalid and the user will be unable to leave that cell. This prevents the user from changing B to true which will remove the error.

I want to display the error on the cell, but still allow the user to change focus away from that cell. Is there any way to change the behavior of the RadGridView to allow this?

1 Answer 1

3

I Just had the same issue. In my case (using DevForce that handles the INotifyDataError on its own) setting ValidatesOnDataErrors to InViewMode on RadGridView solved the problem...

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.