We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CellClick event catching and discarding exceptions

Thread ID:





9770 Jan 9,2004 02:00 PM UTC Jan 9,2004 03:49 PM UTC WinForms 2
Tags: GridControl
Sigurdur G. Gunnarsson
Asked On January 9, 2004 02:00 PM UTC

I''m using the beta. This has been bugging me for awhile, but the CellClick event consumes and discards all exceptions thrown inside code called from eventhandlers connected to the event. Maybe I''m missing something but I thought it was a best practise never to do anything like this? At least this is wreaking havok with my logging of unhandled exceptions :(

Administrator [Syncfusion]
Replied On January 9, 2004 02:53 PM UTC

Syncfusion.Windows.Forms.ExceptionManager that has static members that you can use to control how the grid handles exceptions. For example, to suspend the grid''s error handling, try Syncfusion.Windows.Forms.ExceptionManager.SuspendCatchExceptions = true; You can also hook an event (Syncfusion.Windows.Forms.ExceptionManager.ExceptionCatched) to get any exception thrown, and handle them yourself.

Sigurdur G. Gunnarsson
Replied On January 9, 2004 03:49 PM UTC

Thank you very much :) But this is quite confusing, especially since not all events behave like this.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon