Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bind CheckBox To Null Column
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01400404
Message ID:
01400512
Vues:
34
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform