Well, I am having a problem trying to get the value from a checked item from a checkedlistbox. All I can get its the index but that's not what I want. What I am trying to do is to uncheck all the items that dont have the value = 0 once I click the item with that value and also vice-versa.
Tanks in advance for the attention.
For Each item As String In lstChecked.CheckedItems
' item contains value
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Oops, I am sorry. I forgot to say that the checkedlistbox is filled by a datatable like this:
.DataSource = dvClasse
.ValueMember = "Code"
.DisplayMember = "Name"
I think you need something like this:
Dim x As Integer
For x = 0 To CLB.Items.Count - 1
If CLB.Items.Item(x).ToString = 0 Then
This will loop through the checklistbox and un-selected all items where the value is 0. Hope this helps..
By manumishra in forum Database
Last Post: 06-09-2008, 05:28 PM
By jjvainav in forum .NET
Last Post: 09-19-2005, 10:14 AM
By VBWyrde in forum Security
Last Post: 10-25-2001, 02:44 PM
By Saurabh in forum dotnet.announcements
Last Post: 09-19-2001, 07:48 AM
By Michael in forum Mobile
Last Post: 07-11-2001, 06:18 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center