I want to use the GridView mode of a ListView to display a set of data that my program will be receiving from an external source. The data will consist of two arrays, one of column names and one of strings values to populate the control.
I don't see how to create a suitable class that I can use as the Item in a ListView. The only way I know to populate the Items is to set it to a class with properties that represent the columns, but I have no knowledge of the columns before run-time.
I could create an ItemTemplate dynamically as described in: http://stackoverflow.com/questions/125638/create-wpf-itemtemplate-dynamically-at-runtime but it still leaves me at a loss as to how to describe the actual data.
Any help gratefully received.