i created a form,containing fields emloyeeid,em开发者_JAVA技巧ployeename,age...,and a checkbox. When searching using employeeid ,i want to the checkbox selected/deselected according to the value saved in the database(the checkbox field in database is boolean)
Really depends on your db access approach, one example.
checkbox1.Checked = reader.GetBoolean(ordinal);
精彩评论