If you use typed datasets, you can determine that the column is NULL ( AllowDBNull ). If this property is set to true, you can use the methods yourDataRow.SetFieldnameNull() and yourDataRow.IsFieldnameNull() (of course, you have to replace Fieldname with the name of the field with a null value)
source share