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
1493
Cell with decimal places problem..
posted

Hi,

       I am trying to display some concatinated double values as a string in my grid cell its working fine but only problem I have found is After 5 decimal places it convert the simple number in to exponential number like

12.0000034= 1234E-7. According to my findings while string formating it convert the value as exponential instead of simple double value. I know its solution is while converting double value to string put format for decimal places like .Tostring("F6"). for 6 number of decimal places. But I dont want to enter manually fixed number of decimal places. I want to have all decimal places data in my underlying datasource to display in grid. Can any one suggest some thing in this regard. Thanks

Parents
No Data
Reply
  • 9836
    posted

    Hello,

    I'm not completely sure about your logic for concatinating the double values but I guess that the issue might be related to the precision of the digits. In case you have a Field that contains a XamNumericEditor (default for the double values) you can assign custom  ValueToDisplayText Converter to the editor where you return a double value based on the other two. Note that when concatinating the strings you will have to return no more then a 15 digits.

    if you could provide a sample illustrating the problem that would help greatly in researching this issue.

Children