Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Best way to highlight row when a cell has been edited
posted

Hi,

I'm using a xamDataGrid with the undo redo framework and if a cell within a row has been edited I'd like to set the row to a different color. If possible when the user clicks Undo I'd like the row to revert to its standard colour - Can I tap into the undo/redo events or is there a better option?

Many thanks!

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Michael,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the CellChanged event and in the handler I change the Background of the changed Record. I also handled the DataValueChanged event and in its handler I check if Undo is performed via Boolean variable I created and if yes I return the Background to transparent. Please let me know if you need further clarifications on this matter.

     

    Looking forward for your reply.

    XamDataGridUndoColor.zip
Reply Children