How to Control the Way Grid Handles Exceptions in WinForms GridControl

15 Jun 20211 minute to read

Introduction

Syncfusion.Windows.Forms.ExceptionManager has static members that you can use to control how the grid handles exceptions.

To suspend the grid’s error handling, try.

//Suspends Grid's Error Handling.
Syncfusion.Windows.Forms.ExceptionManager.SuspendCatchExceptions()
'Suspends Grid's Error Handling.
Syncfusion.Windows.Forms.ExceptionManager.SuspendCatchExceptions()

NOTE

You can also subscribe to an event (Syncfusion.Windows.Forms.ExceptionManager.ExceptionCatched) to get any exception thrown and handle them by yourself or re-throw them.