# Dash AG Grid single cell styling after cell edit

**URL:** <https://community.plotly.com/t/dash-ag-grid-single-cell-styling-after-cell-edit/77266>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [July 28, 2023, 11:19pm UTC](https://community.plotly.com/t/dash-ag-grid-single-cell-styling-after-cell-edit/77266 "2023-07-28T23:19:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![kabure](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/kabure/32/19351_2.png) [@kabure](https://community.plotly.com/u/kabure)\
**Post date:** [April 25, 2024, 5:52pm UTC](https://community.plotly.com/t/dash-ag-grid-single-cell-styling-after-cell-edit/77266/6 "2024-04-25T17:52:49Z")

</div>

Hello guys, Thank you so much for this solution;

I’m trying to implement this in a project I’m building and it’s correctly highlighting the changed cell but if I undo the change it’s not removing the highlight  
 ![highlight-issue](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/0/0/001ac7055a7d884143002cf5fb27354ec098da52.gif)  
  
  
There’s a way to control the highlight in a callback instead of the way it’s being done?

If you need/want, here I have a MRE you can use:

> [@How to correctly data type & input in Dash AG GRID? and other issues](https://community.plotly.com/t/how-to-correctly-data-type-input-in-dash-ag-grid-and-other-issues/84015/2):
>
> Hi @kabure You certainly picked a very advanced use-case for your first dash-ag-grid. sweat_smile Just so you know, this would be much easier with AG Grid Enterprise - it has a built-in pivot mode: If you don’t want to buy a license, it’s still possible to do this with the community version, it will just take a little more coding. For the truncated values, you have lots of options. The user can adjust the width by dragging the handle in the header. If you want the text to wrap see: [R…](https://dash.plotly.com/dash-ag-grid/row-height)

My goal is to undo the highlight if the user:  
1 - undo the change by setting the old value again ( I have a dcc.Store with the **original data** )  
2 - if the user submit the change, it should also remove the highligh as a new **original data** will be set

Did you have tried this approach or similar?

---

_[View the full topic](https://community.plotly.com/t/dash-ag-grid-single-cell-styling-after-cell-edit/77266)._
