Bug Report Q434991
Visible to All Users

Data-aware container controls - Format settings are not applied to cells

created 13 years ago

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.

Show previous comments (4)
J J
Jan Derk Stegeman 13 years ago

    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.

      DevExpress Support Team 13 years ago

        The fix for this issue is published. Feel free to download and apply it. Hope, it will solve all problems discussed in this thread.

        Answers

        created 13 years ago (modified 12 years ago)

        Just had a call from a client. I have a TcxPopupEdit decendant that assigns the grids Item.OnGetDataText and that is not called anymore so the users working with documents are on fire and i can not revert the fix because users working with the numbers will be completely maniac!

        Really don't know what to do now…

          Show previous comments (11)

            Hi,
             I encounter same troubles with Tcx(DB)TreeList also. Please provide here a public fix as well.
            Regards
            Toni

            DevExpress Support Team 12 years ago

              Hello Anton,
              Thank you for your research.
              I have updated the fix.

              W W
              William van Driel 12 years ago

                I have run into the same problem with TcxGrid instances - I can confirm that the public fix for V2012.1 addressed the issue for me.
                Thanks for the fix Paulo!
                William

                created 13 years ago (modified 13 years ago)

                Hello,
                Please accept my apologies for any inconvenience this issue might have caused you.
                I have just checked the code and confirm that Luis is completely right. The fix should contain only changes in the IsValueFormattedByProvider function. I have changed the fix accordingly.
                It seems that the painting/transparency issue occurred during the refactoring process. I will discuss this problem with our developers to avoid it in future versions of the cxEdit unit.

                  Comments (3)

                    Om important and URGENT question: am i supposed to apply the code fix to cxEdit.pas from 1.5 or from the previous fix?

                    DevExpress Support Team 13 years ago

                      Applying this fix to the original VCL 12.1.5 cxEdit should be sufficient.

                        Thank you for the quick response.

                        created 13 years ago (modified 13 years ago)

                        Hi,

                        This fix indeed fixes the DisplayFormat problem.
                        But introduces a bigger problem regarding TcxGroupBox painting.

                        I had to discard this fix and apply only one change in code:

                        Delphi
                        function TcxCustomEditProperties.IsValueFormattedByProvider: Boolean; begin Result := not IsValueFormattedByProperties and (dfoSupports in DisplayFormatOptions) and >>added line>> (GetEditValueSource(True) = evsValue) and (GetEditValueSource(False) = evsText) and (IDefaultValuesProvider <> nil) and IDefaultValuesProvider.IsDisplayFormatDefined(not(dfoNoCurrencyValue in DisplayFormatOptions)); end;

                        I will update my own ticket with a sample project and screen shots.

                        Luis

                          Comments (2)

                            @Luis - please post a comment here when you have described the painting problem with the number of that ticket. I'm seeing some painting issues, but i do not have the time at the moment to dig into it.

                              Oh, yes! This fix makes TcxImage have the wrong background color for some skins. I'm beginning to feel very much like a guinea-pig now :( vol 1.5 is beginning to show up as one of the messier updates. I have a feeling someone left DevExpress for a career recently. Adding also that they re-sorted the implementation section of cxEdit.pas so it's difficult to do a comparison and solve the problem.

                              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.