Can you please help me with the right syntax for "in (S)". Basically s represents the ID values already selected. I need to check it against each row and if found set the row as selected = true, problem is with my "in (S)" command.
C1Country.DataSource = dtCountry
C1Country.DataTextField = "Country"
C1Country.DataValueField = "Country_ID"
C1Country.Text = dtCountry.Rows(CurrentIndex).Item("Country")
Dim S As String
S = "1,2,6,7,11"
For i = 0 To C1Country.Items.Count - 1
if C1Country.Items(i).Text in (S) Then
C1Country.Items(i).Selected = True
if C1Country.Items(i).Text in (1,2,6,7,11) Then