Populate checkbox from database C#
-
Hi All, Beginner C# programmer here, I am creating a survey project and I was stuck on how will I populate my check boxes. I have a Table/data stored like this.
id_no prodTyp_Code SN_Skill1 SN_Skill2 SN_Others SN_ProdTyp
12345 T-Shirt 1 0 null null
12345 Jacket 1 1 null null
12345 Shorts 1 1 null null
12345 Pants 0 0 null nullI don't know how will I populate it to my UI. (Please see below image) My Checkboxes UI[^] Please advise me. Thank you.
-
Hi All, Beginner C# programmer here, I am creating a survey project and I was stuck on how will I populate my check boxes. I have a Table/data stored like this.
id_no prodTyp_Code SN_Skill1 SN_Skill2 SN_Others SN_ProdTyp
12345 T-Shirt 1 0 null null
12345 Jacket 1 1 null null
12345 Shorts 1 1 null null
12345 Pants 0 0 null nullI don't know how will I populate it to my UI. (Please see below image) My Checkboxes UI[^] Please advise me. Thank you.
Assuming your checkboxes are for SN_Skill1 and SN_Skill2, when you read your data in a simple boolean conversion will give you a field that is a more meaningful check value.