since WPF creates column headers automatically based on which class is holding data, I'd like to ask if there is a possibility to override this process?
For example, having this class
public class Report
{
public string Value { get; set; }
public int Title { get; set; }
}
I will receive 2 columns - | Value | Title |
As I see it now, WPF creates those columns headers by getting the name of property and "pastes" plain output of what it gets
something like this?
nameof(property);
The goal I want to achieve is to create a custom attribute for the property like
[Header("Price in €")]
public string Value { get; set}
and let WPF create column header based on that attribute, so my columns would be like this -
| Price in € | Title |
My question is how to override this?