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;
}