This documentation is archived and is not being maintained.
Binding::DataSourceNullValue Property
.NET Framework (current version)
Gets or sets the value to be stored in the data source if the control value is null or empty.
Namespace:
System.Windows.Forms Assembly:
System.Windows.Forms (in System.Windows.Forms.dll)
public :
property Object^ DataSourceNullValue {
Object^ get();
void set(Object^ value );
}
Property Value
Type:
System::Object ^The Object to be stored in the data source when the control property is empty or null . The default is DBNull for value types and null for non-value types.
You can use the NullValue property to specify the value displayed in a bound control when the data source contains DBNull .
.NET Framework
Available since 2.0
Return to top