Version

ErrorValue Property (CalcSettings)

The value to be set on PropertyName in case of an error during calculation.
Syntax
'Declaration
 
Public Property ErrorValue As Object
public object ErrorValue {get; set;}
Remarks

If any calculation or reference error occurs during a calculation, ErrorValue can be used to specify a default value for rendering or storage into the underlying property. This value is assigned to the appropriate property of the Context element. For example, in the case of a TextBox's Text property, the property itself will be set to the error value so that it both displays in the TextBox and is saved if the Text property is databound. In the case of an UltraGridCell, this value will not be rendered, but it will be saved to the underlying data source if bound. Properties that are not used to render or bind, such as a NamedReference, must ignore the ErrorValue.

The datatype of any value assigned to ErrorValue must be compatible with the datatype of the target control's property identified by PropertyName, or converted to a compatible type through handling the FormatValue event.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also