I'm binding a grid to a collection where one of the properties is of type 'Color'.
I want to validate the selected color, as only a subset of colors are allowed.
The validating event fires twice after changing the value of 'Color col' cell. And hence my msg box is shown twice. Any way around this?
private void StatusRadGridView_CellValidating(object sender, CellValidatingEventArgs e)
if (e.ActiveEditor != null && e.ActiveEditor is GridColorPickerEditor)
Color c = (Color)e.Value;
if(!AllowedColors.Exists(o=>o.Name == c.Name))
e.Cancel = true;