i have a sql database with 10000+ entries that's filled within a wpf listbox. i'd like to display an image based on an integer within a column of the table. i only have >10 choices for each integer, so i only need @ 10 images.
the question i have is, if a user scrolls down the listbox, what's the fastest way to link up an image to a value using c# and wpf?
i'd rather not use the address of the image in the column, as storage of the data is at a premium, i'd rather just match it.
here's what i mean:
someInt | SomeData
(DisplaySomeImageHere) | thisWouldBeTheNumber1
(DisplayOtherImageHere) | thisWouldBeTheNumber2
etc.
but i have thousands of entries. what would be the best way to scroll these and add the image the fastest way?