Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bind CheckBox To Null Column
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01400404
Message ID:
01400512
Views:
33
>I want to bind a checkbox to a null column in a dataset. Some of the values in the data are null:
>
>
>chkDropShip.DataBindings.Add("Checked", _dsResults, sTableName + ".DropShip");
>
>
>I get "Object cannot be cast from DBNull to other types"
>
>How do I correctly bind this?

If the underlying data is boolean, I just set up a default value of false, so that becomes a non-issue.
Linda Harmes
HiBit Technologies, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform