Skip to content
Advertisement

Select data from Datagridview using checkedlistbox [closed]

I’ve got a datagridview in my form and also a checkedlistbox. I’ve written some code so that I can filter the datagridview with whatever is checked in the checkedlistbox. Although, it will only filter one at a time whereas I want to be able to filter any data which is checked. Is there a way around this?

Code:

Advertisement

Answer

Looks like you have an error in your for loop: “s” contains only last checked item from checkListBox. Try to change it like this:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement