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

How to display the ErrorProvider icon in the cell alone by suppressing the error message in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl

Show error provider icon in cell

When you want to suppress the error message, you can disable the ShowErrorMessageBox property of the current cell.


//This property shows/hides the error icon.
this.gridGroupingControl1.TableControl.CurrentCell.ShowErrorIcon = true;
//Disabling this property hides the error message box.
this.gridGroupingControl1.TableControl.CurrentCell.ShowErrorMessageBox = false;


'This property shows/hides the error icon.
Me.gridGroupingControl1.TableControl.CurrentCell.ShowErrorIcon = True
'Disabling this property hides the error message box.
Me.gridGroupingControl1.TableControl.CurrentCell.ShowErrorMessageBox = False

After applying the properties, the grid is displayed as follows.

Show error provider icon in the cell

Figure 1: Error provider icon in the cell


C#: ErrorProvider icon

VB: ErrorProvider icon

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment
Paul Sepe
Aug 10, 2021

This does not work:

  gridControl1.CurrentCell.MoveTo(3, 4);
  gridControl1[3, 4].CellValue = "ABC";
  gridControl1.CurrentCell.ShowErrorIcon = true;
Balamurugan Thirumalaikumar [Syncfusion]
Aug 11, 2021

Hi Paul,

Thank you for contacting Syncfusion support.

We have checked your query “ShowErrorIcon does not work” at our end. We would like to let you know that the ErrorIcon will appear in the cell when it displays the error icon in the current cell to indicate that an error has occurred. It does not display the icon if there is no validation. We have prepared the simple sample to show the ErrorIcon and disable the ErrorMessageBox in CurrentCellErrorMessage event handler. Please refer the following documentation and sample for your reference.

Show ErrorIcon - https://help.syncfusion.com/windowsforms/grid-control/data-validation#built-in-validation

Sample link – https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionWinFormsApp1-164298780.zip

Please let us know if you would require any other assistance. we will be happy to assist you.

Thanks & Regards, Balamurugan Thirumalaikumar


Please sign in to access our KB

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

Up arrow icon

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