System.Windows.Forms.Binding.NullValue Property

Gets or sets the object to be set as the control property when the data source contains a DBNull value.

Syntax

public object NullValue { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The data source must contain DBNull for the Binding.NullValue property to be correctly applied. If the data source type is a type such as a string or integer the value of the Binding.NullValue property will be ignored. Also, the Binding.NullValue property is ignored if it is set to null.

A null value will be added to the data source when the control property is set to the object of Binding.NullValue. If Binding.NullValue is set to a string value, comparisons are case-insensitive.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0