I am reading values from a database (boolean) and if true, I want it to check a checkbox, and if false, keep the checkbox unchecked. The lines look like this: cblEnergy.Items.FindByValue(1).Selected = track_usage
In this case, track_usage
is a boolean value.
This way does not actually create the check mark in the checkbox like I wanted it to. What is the best way to do this?