.net - How to avoid System.DBNull in DataTable from DataGridView when saving changes? -
i have datagridviews each displaying 1 datatable dataset multiple datatables.
when adding new row datagridview , saving dataset, bool columns have system.dbnull-value causes exception later (when reading dataset in other application).
only if checkboxes in bool column checked , unchecked, has valid value of false when saving dataset.
how can ensure, checkbox columns have default value of false when adding them datagridview or saving them?
in dataset designer can select datatable column , set allowdbnull false , defaultvalue false. way value false rather dbnull.
Comments
Post a Comment