.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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -