Installed 2012.1.5 yesterday. Now users are complaining the grids with currency fields have lost the $x.xx format for columns that were flagged as Currency in the TADODatasets. Even columns that with DisplayFormat '$'0.000 and EditFormat '$'0.0000 defined in the Field of the ADODataset, and confirmed in the TcxGridDBColumn.Properties.DisplayFormat = '$'0.0000 and TcxGridDBColumn.Properties.EditFormat = '$'0.0000, will not display the dollar sign or the 4 decimal digits.
See Attachments:
The left Dataset is highlighting the Available column. On the right side in the Object Explorer, you can see it if flagged Currency and the display format is 0.00. The grid in the dialog shows that this is not being honored. In fact, none of the currency columns in either grid are displaying correctly and all of them are of type Currency.
Uninstalled 2012.1.5 and reinstalled 2012.1.4. No changes to source code, and the above grids now display correctly. See this attachment.
There was a change in cxTextEdit.TcxCustomTextEditProperties.GetDisplayText - it's creating a mess for me too. I've been tracing all day to be able to come up with a ticket that the support people can read (they need scientific proof to make an effort). If the TField has DisplayFormat <> '' or Currency = true then it seems formatting at the control level is bypassed from 1.5 and on, but i need more time to iron out the details so i'm hoping DX spots it with your ticket. HTH, /D
This is serious stuff.
I have put together a project that shows the primary difference between 1.4 and 1.5. As stated in the previous comment, the test in cxTextEdit.TcxCustomTextEditProperties.GetDisplayText was probably wrong in 1.4 and ignored the TField format test (last expression). In 1.5 it does not ignore the test on the TField DisplayFormat property, but it seems that the new test revealed is and has been wrong hithereto (?).
I have put two exe files in the zip this time so that other users with limited time and disk space may perform the test too. Run both the exes, click the buttons and compare the results for the three pre-formatted fields (Value4, Value5 and Value6). This is urgent because we can not do releases with 1.5 and 1.4 blocked me from putting out releases too.
Kind regards,
/Dany
Hello,
Thank you for your sample project. I have reproduced the strange behavior. I have forwarded this ticket to our developers for the research.
Same problem here: Lost all number and currency formatting in grids. My customers are not happy. Neither am I. This is a very serious bug guys.
I'm apprehensive now. The subject was changed. In my second comment i clearly showed that it's about all dataset-formatted numeric fields using an editor, *not* just the currency type. So if the subject should have been changed, why is the description still wrong? Let's hope the fix is right :) - i'm posting this so that there will be time to produce a complete fix before it's published. To avoid what happened with issue Q432285 happening to this issue too. Hoping for your understanding - apologies for the nagging.
The fix for this issue is published. Feel free to download and apply it. Hope, it will solve all problems discussed in this thread.