I have this problem with all my window forms. When I try to add a record to table with no records I get
"InvalidCastException was unhandled by user code".
The field is a text field in which null is not allowed. There is a default value set.
If there are already 1 or more records in the table no error occurs.
I can see that the Add method of the BO is calling the Get method for the text field. Why does it do this on an Add action?
Thanks in advance for any help.