[RESOLVED] DataGridView exception
Hi there,
When I click a row or cell in my DataGridView, I get the following exception:
Code:
System.Data.NoNullAllowedException: Column 'cc_log_date' does not allow nulls. at System.Data.DataColumn.CheckNullable(DataRow row) ...
Also,
When I click a row header, and then click the 'Delete record' button on the binding navigator, it doesn't delete the row highlight, it deletes the first row in the DataGridView :confused:
Anyone have a clue what's causing this?
Thanks.
EDIT:
I then turned on AllowDBNull on the 'cc_log_date' field on the dataset. After that, I clicked a row, clicked off it and the value in the 'cc_log_date' disappears :S.
http://img7.imageshack.us/img7/9572/datagridview.png