System.Web.UI.WebControls Namespace BoundField Class
Sets or retrieves a value specifying whether empty string values ( "" ) are automatically converted to null values when the data field is updated in the data source.
Inline |
<asp:boundfield convertemptystringtonull [ = true | false ] ... > |
Script |
BoundField.ConvertEmptyStringToNull [ = true | false ] |
This property accepts or returns only a boolean value: true to automatically convert empty string values to null values; otherwise false. Default value is true.
Use the ConvertEmptyStringToNull property to specify whether an empty string value is automatically converted to null when the data field is updated in the data source.
NOTE: By default, a BoundField object displays null values as empty strings. To display a different value, set the NullDisplayText property.
BoundField Members