| The
DataGridViewCellStyle.DataSourceNullValue property could have been called
ParseNullValue if the other property was FormattedNullValue, but in the end
DataSourceNullValue made good sense. The DataSourceNullValue property is used
when writing the value of Null to the cells value. In databound scenarios
this value gets written to the database or business object. This is important
to control as business objects and databases have different concepts of null.
Usually youll want to set DataSourceNullValue to null when working with
business objects and DBNull.Value when working with databases. The default
value of DataSourceNullValue is DBNull.Value. |