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

Friendly DataGrid Header Text with AutoGenerateColumns True

$
0
0

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