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.
Unfortunately, activation email could not send to your email. Please try again.

Disable default exception handling (MessageBox)

Thread ID:





132592 Sep 11,2017 05:10 AM Sep 12,2017 02:45 AM Windows Forms 1
Tags: GridControl
Asked On September 11, 2017 05:10 AM


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 02:45 AM

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.

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.