I'm pretty new to WPF, so pardon my ignorance. I currently have a List of objects that I am using as an ItemsSource
for a DataGrid
. One of the fields of the objects is a float data type, and of course displays decimal places on the DataGrid
when used as an ItemsSource
.
I would like to remove these decimal places, without changing the underlying data, if that's possible. In other words, I would like to display them as if they were ints on the DataGrid
, but leave them as floats in the List
.
If this is possible using C#, that would be super-great-nifty. XAML makes me want to vomit :)