mercredi 7 décembre 2016

What is the best way to link a single CheckBox with a SQL column

(I haven't written the code yet, just brainstorming) Hi guys, just wondering of the best method to use for this problem;

If sql column == 1 set checkbox.checked

else leave checkbox unchecked.

or would it be better to declare a Boolean variable and use an if statement to set to true or false depending on the 1 or 0 returned from the dataset.

Aucun commentaire:

Enregistrer un commentaire