Articles in this section
Category / Section

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

4 mins read

Show error provider icon in cell

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

C#

//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;

VB

'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

Samples:

C#: ErrorProvider icon

VB: ErrorProvider icon

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied