Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
1) Are you explicitly setting the value of the Recalled field to DBNull.Value in the SetDefaultValues()?
No, I doesn't set DBNull.Value to recalled field. Beside, the error occurred BEFORE SetDefaultValues event fired.
2) Are any of the other fields in the new row DBNull.Value also, or just the Recalled field?
It happen to ALL fields.
3) Is it trying to cast a DBNull.Value to a Boolean, or something else?
To Boolean. The same problem happen to other fields as well, which is integer.
Please advice. It is urgent.
Thank you
|