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

How do you dynamically handle variable number of columns returned from a database?

$
0
0

I've written a few WPF apps. I know how to use data templates and have written them. But in all cases when I've used them, I'd done so with a known number of columns being returned from the database.

Now I'm starting a new project in which we're going to allow the users to decide which columns to return from a database. They can select as many or as few as they want. I just don't see how one can do this declaratively. Is that possible? If not, then how do you go about templating the data into something like an itemlist or other data container?


Rod


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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