tags:

views:

58

answers:

0

I have 3 listviews in a wpf grid column, one each for customers, products, and vendors. They each get data from LINQs to separate SS2005 queries in the same db. The lists are populated when a user enters text in a textbox. The LINQ query code uses as startswith() function that reads the user entry and returns a smaller list to the listview.

When the the code is run, each listview is populated properly. However, the Products list doesn't display the entries. I attached a call to a messagebox to the selection event of the listitem and the message box correctly displays the product.

The single difference between the two working lists and the bad one is the query that calls the bad one returns a single field from the db and the others return two fields, a text field and an integer ID field.

I'm at a loss. The background of the listview is white, the foreground is black (they were set using the properties panel).