|
-
May 21st, 2008, 09:23 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] Cancel Event of Another Control
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 ?
-
May 21st, 2008, 09:43 AM
#2
Thread Starter
Hyperactive Member
Re: [2005] Cancel Event of Another Control
Temporarily solved this issue - If there are any more suggestions I would be glad to hear it -
Resolution:
In the LookUpEdit.EditValueChanging Handler - I changed the save routine to a Function - Depending on the return type, it would cancel the function, or let it run, e.Cancel = true...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|