I would like to load some data from external various source such as text file, csv file, user input, etc, and display in a list view using C# WPF. I need to display one source at a time only, and the number of columns is fixed within one source, but different sources may contain different number of columns, e.g.,
File1 may have following column: Name, Number, Cat1, Cat2, Cat3
File2 may have following column: Name, Number, CatA, CatB
File3 may have following column: Name, Index, Type1, ..., TypeN
...
Seems that the listview in C# WPF can only be used with a known number of columns, is it possible to use listview which the number of columns is only known in the RUNTIME, similar to the above data? or I should use a different approach, I have no idea yet. Thanks.
