Quantcast
Viewing all articles
Browse latest Browse all 18858

Friendly DataGrid Header Text with AutoGenerateColumns True

Here's the deal:

I'm setting a DataTable object to DataGrid ItemsSource property. I don't know the DataTable's structure, it is dynamically retrieved.

So, in the DataGrid I set AutoGenerateColumns to True.

However, the Headers text are all ugly. Is there some property in the DataTable to set the friendly column name? If there is, the DataGrid will recognize it?


Take a look at WPF FlashMessage
About.me


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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