Ticket T363436
Visible to All Users

How to highlight a modified cell

created 9 years ago

[DevExpress Support Team: CLONED FROM Q503078: Flash updated cell]
Solution is very useful. But how to use in winform application. Please suggest. In our example Gridview cell value change when another thread change value in datatable by setting  DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true. But end user dose not know which value updated because cell don't flash in red or green color for small duration.

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Hello Sevak,
Updated
I've created a sample project to demonstrate how this can be done. The main idea of the suggested approach is to handle an event of the GridControl's data source to determine which value is going to be changed and save it in order to use the value in the GridView.RowCellStyle  event handler to determine which color should be used to draw the cell's background. Please take a look at the RefreshHelper  class. All required functionality is implemented in it.
Let me know if you have additional questions.

    Show previous comments (3)
    DevExpress Support Team 9 years ago

      Thank you for the clarification.
      I cannot convert this WPF project to a WinForms one because the WPF project contains some classes specific to the WPF technology.
      However, I've created a sample project to demonstrate how to accomplish this task.
      I've updated my answer accordingly. Please review it.

      SD SD
      sevak dhanjaya 9 years ago

        Thanks for your help. This solution is working with only one cell . When I remove  row = GridControl.InvalidRowHandle; line then it was working for all cells. But not getting smooth color transition animation. But its working and can use this logic. Only my worry is when we have 6-7 child windows in mdi form and values are changing very rapidly then this logic should not create any performance problem.

        DevExpress Support Team 9 years ago

          I think there should be no problems if you place a separate RefreshHelper  to each MDI form.
          In any case, if you face any difficulties, you can contact us and we will help you overcome them.

          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.