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?
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