In WPF DataGrid, we can bind the DataGridTextColumn value this way.
<DataGridTextColumn Header="MyColumn"
Binding="{Binding MyColumnValue}" />
What if I wanted to give a static value for this column. Something like
<DataGridTextColumn Header="MyColumn"
Value="This is a static text" />
I guess it's possible to use a converter, or add an additional property to binded model but I hope there is a simpler way to do this.
Replace the
DataGridTextColumnwith aDataGridTemplateColumn:Or the set the source of the binding to a
string: