smartDBforms.NET API Reference

DataBindItem.ValueNonNull Property

Gets the database field's value. An object with the proper type is returned according to DataType. The value is never null. If the database value is NULL then a default value value will be returned. If you need Value to be returned, then use Value. You can use this property in two-way databinding expression. For example: Text='<%# Bind("ValueNonNull")%>'.

[Visual Basic]
Public ReadOnly Property ValueNonNull As Object
[C#]
public Object ValueNonNull {get;}

Remarks

Here are the default values which are returned when the database field is NULL.

Data Type The default value returned on NULL
Boolean false
Char ' ' - space
A number(Byte, Int32, Single...) 0
DateTime DateTime.MinValue
String string.Empty

See Also

DataBindItem Class | Adillis.SmartDBForms Namespace