Groups | Blog | Home
all groups > dotnet windows forms databinding > september 2004 >

dotnet windows forms databinding : column 'code' does not allow nulls...


SLI
9/16/2004 11:19:41 AM
Hi Everybody,

I find the problem that is the CheckBox Problem??
If I dont use the CheckBox press the AddCommand is work?
But when I use the Check Box it will come out the error :

column 'code' does not allow nulls...

Someone can help me solver this problem.........
Many Thanks

This is my CheckBox Setting :
Use DataBingings - Checked for SQL Database connect

This is my SQL Server Setting
Check1 Column - Data Type setting is 'bit'

Greg Robinson
9/20/2004 11:32:14 AM
Hard to follow your post, though it sounds like you are trying to do an
insert or edit to a field that is null, and you told the field it does not
allow nulls.

Take a look at DataColumn.AllowDBNull property


[quoted text, click to view]

AddThis Social Bookmark Button