# Styling rows based on column value in datatable

**URL:** <https://community.plotly.com/t/styling-rows-based-on-column-value-in-datatable/18839>\
**Category:** Dash Python\
**Created:** [January 31, 2019, 9:23am UTC](https://community.plotly.com/t/styling-rows-based-on-column-value-in-datatable/18839 "2019-01-31T09:23:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ablochs](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@ablochs](https://community.plotly.com/u/ablochs)\
**Post date:** [January 31, 2019, 9:23am UTC](https://community.plotly.com/t/styling-rows-based-on-column-value-in-datatable/18839/1 "2019-01-31T09:23:33Z")

</div>

From the [docs](https://dash.plot.ly/datatable/style) i can tell you’re able to style specific cells conditionally in a datatable.

But can you style rows based on column values?  
Say you wanted to make all rows green that have value `True` in a column called `calculated`…

?

---

<div class="post-metadata">

**Author:** ![Svelasco](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Svelasco](https://community.plotly.com/u/Svelasco)\
**Post date:** [January 31, 2019, 2:38pm UTC](https://community.plotly.com/t/styling-rows-based-on-column-value-in-datatable/18839/2 "2019-01-31T14:38:44Z")

</div>

You can try making a dynamic list of dictionaries .The style is that kind of variable.
