Please I have problem with auto generated Check Box group, The problem is:

I generated check box group depending on database table, and I can show it in panel correctly without any problem,
when i check the check boxes the check boxes value save to database correctly without any problem,But the problem appear when | want to
retrieve the check box that checked in insert time, So when I press updating button first time bring the check boxes but without show me the check boxes was checked but in the second press it's show me the the same check boxes with checked boxes

so the problem in brief i want to press the updating button two time to see the checked boxes ,
In general ,if you faced same this problem, what can I do to prevent this problem ,please your help

Thank you in advance