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
705
how do you tell what user response to delete prompt was?
posted

I inherited an application.  I ran into this line of code:

myUltraGridBorrowers.PerformAction(UltraGridAction.DeleteRows);

I need to run a function if the user clicked "YES" when given the dialog box.  Is there any way to know what they answered through code?  Or do I have to check the recordcount on the grid before and after the action?

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    You could handle the AfterRowsDeleted event to know that they clicked 'yes'.  If you need to distinguish this from other delete actions, you could set a flag before you call PerformAction and check that flag in the event handler.

    -Matt

Children
No Data