Hi Patrick,
Thanks for the info, actually I have a Solution but please do let me know if
there is a better way of doing it. This is how I approached it. I loop
through the dataset and check for the column that corresponds to the one
that has to be linked/matched to the checkbox and if it matched
then.selected = true
For iSystems = 0 To dsSystems.Table s(0).Rows.Count - 1
If dsSystems.Table s(0).Rows(iSyst ems)(1).ToStrin g = "Canada" Then
For iChkBox = 0 To chkBoxCanada.It ems.Count - 1
If chkBoxCanada.It ems(iChkBox).Va lue =
dsSystems.Table s(0).Rows(iSyst ems)(0).ToStrin g Then
chkBoxCanada.It ems(iChkBox).Se lected = True
End If
Next
End If
Next
Is there a better way of doing this?
Thanks,
Stephen
"Patrick.O. Ige" <na********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Stephen are you interested in getting the selectedItem.Va lue of the
Checkboxlist?
Maybe try posting some snippet code.
Patrick
"Stephen" <st********@hot mail.com> wrote in message
news:uT******** ******@TK2MSFTN GP12.phx.gbl... Hi,
I have a question on checkboxlist, suppose I have a checkboxlist and has
listitems like
USA
Canada
UK
Germany
Australia
Suppose I have a resultset that has values (USA, UK and Australia)
How can set the values in the checkboxlist to selected/enabled?
Thanks,
Stephen