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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable default exception handling (MessageBox)

Thread ID:





132592 Sep 11,2017 09:10 AM UTC Sep 12,2017 06:45 AM UTC WinForms 1
Tags: GridControl
Asked On September 11, 2017 09:10 AM UTC


When exception happens related to GridControl, there is MessageBox shown, as on attached image (example is for IndexOutOfRangeException).

We do not want this MessageBox to appear, because we have separate handling of exceptions in applications.

Is it possible to disable them? If not, can it be implemented soon?

Attachment: ^4B3AC9ABC111B633CF0E7BF845A99B3E1E42DBE97CED0EBB1F^pimgpsh_fullsize_distr_1a1c0493.rar

Arulpriya Ramalingam [Syncfusion]
Replied On September 12, 2017 06:45 AM UTC

Hi Marcin,   
Thanks for using Syncfusion products.   
Suggestion 1:   
In order to avoid the ErrorMessageBox, the ShowErrorMessageBox property can be set to false. Please refer to the below code,   
Code example  
//To avoid errormessagebox   
this.gridControl1.CurrentCell.ShowErrorMessageBox = false;   
Suggestion 2:   
In order to avoid displaying the ErrorMessageBox, the CurrentCellErrorMessage event can also be handled. Please make use of below code, sample and KB links,   
Code example  
//Event Subscription   
this.gridControl1.CurrentCellErrorMessage += GridControl1_CurrentCellErrorMessage;   
//Event handling   
private void GridControl1_CurrentCellErrorMessage(object sender,GridCurrentCellErrorMessageEventArgs e)   
    e.Cancel = true;   


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