|
-
Apr 6th, 2002, 08:37 AM
#1
Thread Starter
Hyperactive Member
using the check box as a bound control
can anyone help me, I have created a databinding for my check box see below:
CheckBox1.DataBindings.Add(New Binding("Checked", ds2, "Orders.Proforma"))
the only problem is that I can't seem to set the field type via the data designer to boolean - it simply isn't in the list of available data types, in spite if the fact that the documentation confirms that it is. Does anyone know how you create a boolean data type via the data designer (or any other way would do actually), it's just I get a casting error (cannot cast from DbNull type) whenever I try to bind and it's a new row, which is what this is.
I tried setting the data type as tinyint, smallint and bit none of which worked (of course!)
Temporarily I am going to get around it by not binding this particular control and sadly using manually setting the value
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|