Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
XamDataGrid Double Value Rounding
posted

I am currently using the WPF 12.1 XamDataGrid and it is bound to a double value.  My underlying data value is 499.997 and I need to preserve this value.  However, when the datagrid displays the value it automatically rounds it to two decimal places thus resulting in 500.00 being displayed even when the underlying value is still 499.997.

 

Is there a way to preserve the original value in the data grid and provide more than 2 decimal places?

 

Any assistance would be greatly appreciated.