title: Make data grid cells show less decimals when not focused
body: <p>I have a wpf application with a datagrid. That datagrid contains double numbers on his cells with 15-16 decimals sometimes. I want to hide all that decimals on lost focus and show just 2 or 3, but keeping the real number stored because I don't want to lose precission. The same on got focus, showing all the decimals.</p>
  
  <p>I've thought to do this creating a custom datagrid cell and making that changes on the OnGotFocus()/OnLostFocus() methods, but I don't know if that is the best way to do this. Thanks in advance and sorry about my english.</p>