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
175
Exception handling in UltraGridColumn.GroupComparer
posted

I have implemented a UltraGridColumn.GroupComparer routine to sort my group by rows in the ultragrid.  The issue I am having is exception trapping.  If I trap the exception within the GroupComparer routine, the report displays as if there was no error.  If I throw an exception, it is not being caught by my calling routine.  How can I abort the report without causing an unhandled exception?

Parents
  • 469350
    Offline posted

    Hi,

    What exception are you getting?

    You should really avoid calling code that could raise an exception inside an IComparer. 

    There is no way to catch that without catching exception on your entire application.

Reply Children