Why WPF DataGrid control doesn’t shows defined DisplayNameAttribute values for grid columns? However this works fine when using Winforms DataGridView!
Thanks a lot 😉
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t work that way in WPF. You could argue it’s about maintaining separation of View and Model data.
The easiest way to address your concern is simply defining the column ahead of time; versus setting
AutoGenerateColumnsto true.