Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
How to cancel click event based on certain condition.
posted

I have a situation in which a user can click a row and change data for that row, which will change a Boolean indicating the code has been changed. Then when the user clicks a new row, the click event should check to see if CodeChanged = true, if so, then a messagebox will pop-up asking the user if they would like to save unsaved data. If they click yes then the click event should be cancelled and the previously selected row should stay selected. What is the best way to go about doing this?

Parents Reply Children
No Data