SetEntityFieldError - Clear in UI?

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 19-May-2008 14:42:56   

I have a simple app that binds an Adapter collection to a DevExpress grid. When the user enters an error, I use the "SetEntityFieldError" to set the error. The error nicely appears in the UI grid.

When I cancel the error with "ESC" the error condition remains as a little red X. Am I missing a step in the LLBL code to clear the error condition? Or is this UI related. I thought that when the grid reverted the row back it would clear the IDataError object.

This is a HelloWorld app and this is the only code in the app beyond designer code:

    
protected override bool OnValidateFieldValue(int fieldIndex, object value)
       {
           bool toReturn = true;
           switch ((OrdersFieldIndex)fieldIndex)
           {
               case OrdersFieldIndex.ShipCity:
                   if (value.ToString() == "LONDON")
                   {
                       SetEntityFieldError(OrdersFields.ShipCity.Name,"LONDON IS BAD",true);
                       toReturn = false;
                   }
                   break;
               default:
                   toReturn = true;
                   break;
           }
           return toReturn;

       }
goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 19-May-2008 18:50:37   

Seems UI Related to me, try doing the same thing with a visual stdio shipped in grid to be sure is not devex related. The following thread reads about a similar subject:

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=6259