0

I have a database bound to a listbox but I would like to view only certain items, how to do that?

It sounds like a really simple task but I don't know how to do it.

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by pseudorandom21
0

Sorry, I found the solution. I wasn't thinking and was looking in the wrong place for the answer.
Visual Studio created this:

tblPetBreedsBindingSource.Filter = "TypeOfPet='" + this.listBox1.SelectedValue.ToString() + "'";

and it obviously has a Filter property.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.