The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
The Syncfusion KB says this:
"How to control the way the grid handles the exceptions
There is a class 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:
[C#]
Syncfusion.Windows.Forms.ExceptionManager.SuspendCatchExceptions();
[VB]
Syncfusion.Windows.Forms.ExceptionManager.SuspendCatchExceptions()
You can also hook an event (Syncfusion.Windows.Forms.ExceptionManager.ExceptionCatched) to get any exception thrown, and handle them yourself or re-throw them."
*Where* should such a line of code be called from?
STstanleyj Syncfusion Team January 6, 2006 06:57 AM UTC
Hi Plioi,
If you want to catch errors while the grid is being initially created then you may subscribe this handler in the form''s constructor before the InitializeComponent call, as the grid is usually created in the InitializeComponent call from the forms constructor.
ExceptionManager.ExceptionCatched += new ExceptionCatchedEventHandler(ExceptionManager_ExceptionCatched);
Then in the handler you would condition resume or suspend CatchExceptions depending upon what you want the grid to do.
private void ExceptionManager_ExceptionCatched(object sender, ExceptionCatchedEventArgs e)
{
// if you want the grid to rethrow the exception, call ExceptionManager.SuspendCatchExceptions();
// if you want the grid to eat the exception (ignore it), then call ExceptionManager.ResumeCatchExceptions();
}
Best regards,
Stanley