Answer the question
In order to leave comments, you need to log in
DataGridView doesn't want to display null?
VS 2010, a small WinForms project. I use sqlite3 as a database.
The usual dataGridView table on the form is filled with data from the database through the DataSource. If there are no null records in the database, everything works fine. If this suddenly appears, it throws a ConstraintException error and marks the field with an exclamation point in a red circle. Although the field in the table is marked as NULL, i.e. matches the structure well.
Line where the exception is thrown:
//orders - название таблицы
this.ordersTableAdapter.Fill(this.databaseDataSet.Orders);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question