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.
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.
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.