Thanks!
1. Maintains a table that has 3 columns, the first of which is a varchar(10) and is the primary key.
2. The BO for this table has the PK set as required and does not allow null.
3. With this new app, I can edit and save records (of course...#@$%$#@)
4. I am unable to add new records via the form. The instant I click "New" I get the following exception thrown...
"Unable to cast object of type 'System.DBNull' to type 'System.String'."
Again, it acts like it is trying to add the record to the BO before the user can fill in any data via the form. The only way I've found around this exception is to set the BO to return alternate of String.Empty.
??????
At this point, I think I will throw away the "problem child" and try to create the form again from scratch and see if I get the same problem regarding the edit/save issue. I would still like to understand the problem I have when trying to add a new record and getting the casting exception.
Thanks for the explaination. That all makes sense now. I'll let you know how my re-write from scratch goes with the other problem child (edit/save exception).
Regards,
Doug
I recreated the form, BO, etc from scratch, and all is well with the world. I have no idea why the first app had the problem with edit/save. Must have been some glitch someplace. Regardless, I learned a lot and thank each of you for your valued input.
Cheers,