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
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.
Hi Zargoski,
Thanks for your reply. These are my findings about the issue:
If value is 0.0000567 or any value more then 5 digits leading by 0 (Before point )given earlier if you try to display such values in grid it autometically convert this double value as exponential value like, 0.0000567= 5.67E-5. But if you use decimal instead of double as type of variable then its working fine in this way 0.0000567m. The issue is notthing to do with concatination its just simple double value converssion problem to string. Can you please suggest some thing now?