Ticket T289562
Visible to All Users
Duplicate

Format Rules Manager - How to restore last rule

created 9 years ago

[DevExpress Support Team: CLONED FROM T186366: GridControl - Provide a Conditional Formatting manager]
Hello guys !
With the Conditional Formatting manager, can I restore the last rule on the Conditional Formatting form ? If not, how I can do this ?
Regards.

Comments (2)
Sasha (DevExpress Support) 9 years ago

    Hello Florent,
    Please accept our apologies for the delayed response.
    Would you please clarify what you mean by saying 'restore the last rule' ? Do you mean that you wish to restore a deleted rule? Or do you want to cancel changes made to a rule?
    Probably, this functionality can be found in any other product. If yes, please provide us with a video that illustrates this functionality. If not, would you please describe the scenario step by step?
    This information would help us to find an appropriate solution for you.

    I am looking forward to your response.

    FM FM
    Florent Maillot 9 years ago

      I use the property ShowConditionalFormattingItem to activate the conditional formatting feature for my data grids.
      A formatting rule applied at runtime in a listview by the user works great.
      But if the user log off and log on again, the formatting rule applied in the listview isn't saved/restored.
      This is what I mean by restore the last rule, it's restore the appearance imposed by the rule in the listview.

      Answers approved by DevExpress Support

      created 9 years ago (modified 9 years ago)
        created 9 years ago

        Hello,

        Thank you for the clarification.
        To achieve this goal, I recommend you save and then restore GridControl's layout using the GridView.SaveLayoutTo~ and GridView.RestoreLayoutForm~ methods accordingly.
        Note, that it is important to set the OptionsLayoutGrid.StoreFormatRules property to True. Please try this approach and let us know your results.
        I am looking forward to your reply.

          Show previous comments (3)
          Dennis Garavsky (DevExpress) 9 years ago

            Hi Florent,

            I have already answered you yesterday. Please see my answer above.

            FM FM
            Florent Maillot 9 years ago

              Sorry Dennis, I wasn't see the answer above.
              Thank you very much.

              Dennis Garavsky (DevExpress) 9 years ago

                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.