# How to change cell color in message handler

**URL:** <https://forum.inductiveautomation.com/t/how-to-change-cell-color-in-message-handler/52130>\
**Category:** Ignition\
**Created:** [October 19, 2021, 8:11pm UTC](https://forum.inductiveautomation.com/t/how-to-change-cell-color-in-message-handler/52130 "2021-10-19T20:11:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 19, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/how-to-change-cell-color-in-message-handler/52130/2 "2021-10-19T20:48:33Z")

</div>

Because you’re setting the very general-scoped `cells` styling, which is used as the “default” for any cells which don’t have their own style attributes defined in `props.data`. You need to set the style for just one cell of data in `props.data` by modifying the `style` attribute of some “cell”. I’ve assisted with that ina. neighboring thread: [Change style of cell (component Table) via script - Perspective - #13 by cmallonee](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573/13)

You shouldn’t be handling the logic like this.

What I recommend is you place all of the display logic into the table. If you need to update a value in the dataset, feel free to do so wherever, but let the Table itself resolve the binding and apply the display logic based on the new values.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-change-cell-color-in-message-handler/52130)._
