Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Display data in DataGrid when column count and headings are not known at runtime

$
0
0

Hi

I have a requirement to display tabular data in a WPF GUI and the DataGrid looks to be the natural choice.

In this case, the number of columns and their headings can vary at runtime. I have looked at a number of articles and code examples but they all seem to assume that the data is fixed in advance and that you can bind your input data to a class with a property for each column.

Is there a pattern or technique for doing this when you don't know the structure of the data at compile time?

Thanks

Patrick


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>