I have DataGrid
in my wpf mvvm application. i am binding a data table as the data source from my view model. please tel me a way to bind DataGrid
column header text with the underlying tada table column "Caption". (not the default column name). I create Datagrid
columns automatically (AuotGeneratedColumns = true
)
Asked
Active
Viewed 172 times
0

Sergey K.
- 24,894
- 13
- 106
- 174

user841960
- 11
- 1
-
You have only one column header per column but you can have multiple rows. Which row in particular are you looking to bind the headers to? Or are you looking to bind them to another DataTable with a ColumnName - Caption mapping? – Fredrik Hedblad Aug 12 '11 at 11:47
1 Answers
0
Similar solution here ...http://stackoverflow.com/questions/6928393/all-datagrid-headers-must-have-unique-names-how-to-work-around-it/6929089#comment-8293037
Let me know if this guides you in some direction?

WPF-it
- 19,625
- 8
- 55
- 71