Quantcast
Viewing all articles
Browse latest Browse all 256

Adding Datagrid Column Header Names at Runtime

I put vertical textblocks in a datagrid column headers. Now I want to add names to these header textboxes at runtime. The order of the columns is random so I can't just bind the names in the XAML. So how can I add names to these column headers everytime data is loaded to the datagrid. I want to use either names from the variables or from a list. But I can't figure out how I can do this either. Thanks for helping.

Viewing all articles
Browse latest Browse all 256

Trending Articles



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