I thought this would be rather simple and probably is but I cannot find anything on google. I have a WPF application with a datagrid bound to my object which contains proper
If you use a DataGridTextColumn you can use a StringFormatter on your binding
<DataGrid>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding MyNumber, StringFormat={0:#,0} {1:#,0}}" />
</DataGrid.Columns>
</DataGrid>
You're looking for StringFormat
<DataGridTextColumn Binding="{Binding myInt, StringFormat=\{0:N0\}}"/>
or
<DataGridTextColumn Binding="{Binding myInt, StringFormat={}{0:N0}}"/>