Hi,
I have a checklistbox that has a list of reports (that come from my database), then I verify which reports are assigned to a userID, then I want to "check" all those reports in the checklistbox. My problem comes with the fact that after programatically "checking" the items the checklistbox will not display a checkmark next to the reports.
int index = 0;
foreach (ReportClass Report in ReportList)
{
if (Report.AccessGranted == 1)
{
clbReports.SetItemChecked (index, true);
clbReports.SetItemCheckState (index,CheckState.Checked);
}
index ++;
}
clbReports.Refresh ();
Anyone has any idea why the checkmarks do not appear ?
Thanks in advance
Luis Torres
I have a checklistbox that has a list of reports (that come from my database), then I verify which reports are assigned to a userID, then I want to "check" all those reports in the checklistbox. My problem comes with the fact that after programatically "checking" the items the checklistbox will not display a checkmark next to the reports.
int index = 0;
foreach (ReportClass Report in ReportList)
{
if (Report.AccessGranted == 1)
{
clbReports.SetItemChecked (index, true);
clbReports.SetItemCheckState (index,CheckState.Checked);
}
index ++;
}
clbReports.Refresh ();
Anyone has any idea why the checkmarks do not appear ?
Thanks in advance
Luis Torres