Ö
Özden Irmak
Hi,
I have some simple dataentry screens, textboxes are bound into a datasource.
I connect to Sql Server 2000. When the user wants to add a new record, I
call "AddNew()" method of bindingcontext but it gives me an error saying
"CustomerId cannot be null value". This field is int and does not allow
nulls. But I don't do any posting of the data, just adding a new onw? The
field is not marked as an identity.
In another screen there are varchar fields and they also don't allow nulls
but I don't get this error?
Isn't this weird?
I'm using VS.Net 2003 and C#.
Any help?
Regards,
Özden
I have some simple dataentry screens, textboxes are bound into a datasource.
I connect to Sql Server 2000. When the user wants to add a new record, I
call "AddNew()" method of bindingcontext but it gives me an error saying
"CustomerId cannot be null value". This field is int and does not allow
nulls. But I don't do any posting of the data, just adding a new onw? The
field is not marked as an identity.
In another screen there are varchar fields and they also don't allow nulls
but I don't get this error?
Isn't this weird?
I'm using VS.Net 2003 and C#.
Any help?
Regards,
Özden