I have a database with a table named "Article" (containing all my articles of course) and another table named "ArticleSupplier" (containing supplier for my articles). Each article can have multiple suppliers.
What I do, is binding my table article to a WPF listview using Linq, but I also need to show the first supplier reference for my articles, so I did a binding of that kind :
DisplayMemberBinding="{Binding Path=ArticleSupplier[0].reference, Mode=OneWay}"
This work well, except for the performance, the scrolling is a real pain, certainly due to the amount of "sub-queries" that my binding involve.
How can I achieve this in a fastest way ? I really need to show the supplier reference in my listview (without that binding the scrolling performance are really good).
Thank a lot for your help, I am really stuck with this.