By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,529 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,529 IT Pros & Developers. It's quick & easy.

how to get multiple selected item's valuemember in checkedlistbox?(the code i wrote i

P: 7
hi guys, below is the code i wrote.
but it only return the first checked item even i have 2 items checked.
please help on this problem.
any help would be appreciated, thanks.

Dim indexchecked As Integer
Dim MYSTR As String

For indexchecked = 0 To checkedlistbox.Items.Count - 1
Dim drv As DataRowView = CType(checkedlistbox.SelectedItem, DataRowView)
MYSTR = drv.Row(checkedlistbox.ValueMember).ToString
Mar 2 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 4,871
Here is an example that may help:
In defense of WindowsForms...
Mar 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.