'Declaration
Public Property CellErrorStyle As Style
'Usage
Dim instance As ColumnBase
Dim value As Style
instance.CellErrorStyle = value
value = instance.CellErrorStyle
Property Value
The style that will be used by the cells contained in the column when their content fails the validation process. By default, a null reference (Nothing in Visual Basic).
Example
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated
otherwise.
The following example demonstrates how to provide a new style that will change the foreground color of a cell when its value fails the validation process. It uses the ShippingCostValidationRule custom validation rule defined in the previous example.
Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2