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.
Figure 1: Error provider icon in the cell
Samples: