I have a Look Up Edit (Developer Express Control, Combo Box + Grid Control) whose values are tied to a data set and rows of a table - When a value on the form (rows of the specific drop down item) is changed- a dirty flag is raised, when I change items on the look up edit - if the dirty flag is raised I want to prompt to Save - Yes/No/Cancel - If they hit cancel - It should revert back to the old Look Up Edit item without hitting the new item, then switching back to the old -

I added an event to the lookupedit.editValueChanging handler to catch the value changing - but when they hit cancel - it should cancel this action -

Any thoughts on how this can be accomplished ?