jeudi 21 mai 2015

How to retrieve the check state of checkbox from database while the check box control is on the Datarepeater

I want to retrieve the checked state of the unbound check box control on the Datarepeater and database using C# in win forms. I dragged the "Task State" field from Task table as a label containing the 0 (which will be used as false) and 1 (which will be used as true for checkbox1.checked).

Screenshot

as you can see in the image, I want the unbound check box to take it's check state from translating those 1s and 0s from the label under the check box (green arrowed).




Aucun commentaire:

Enregistrer un commentaire