# Table Component Row styleclass dataprovider is reset

**URL:** <https://forum.servoy.com/t/table-component-row-styleclass-dataprovider-is-reset/20723>\
**Category:** Questions\
**Created:** [March 31, 2022, 2:52pm UTC](https://forum.servoy.com/t/table-component-row-styleclass-dataprovider-is-reset/20723 "2022-03-31T14:52:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev-ws-011](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dev-ws-011](https://forum.servoy.com/u/dev-ws-011)\
**Post date:** [March 31, 2022, 2:52pm UTC](https://forum.servoy.com/t/table-component-row-styleclass-dataprovider-is-reset/20723/1 "2022-03-31T14:52:51Z")

</div>

Hi All,

I am working with Servoy Extra Table component in NG Desktop client. I have come across an issue while setting rowStyleClassDataprovider. This property is working fine when screen is loaded and style is implemented.  
As soon as a record with row style implemented is selected, it is updated to selectedRow styleclass and does not revert to row styleclass when unselected (another record is selected). This makes rowStyleclassDataprovider ineffective. If screen is loaded again, then style appears again.

_Thing to note here is that Row style vary according to each record for e.g. record with progress ‘100%’ can be displayed as green, etc._

Any help shall be highly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![robert.edelmann](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/robert.edelmann/32/4494_2.png) [@robert.edelmann](https://forum.servoy.com/u/robert.edelmann)\
**Post date:** [April 1, 2022, 2:29pm UTC](https://forum.servoy.com/t/table-component-row-styleclass-dataprovider-is-reset/20723/2 "2022-04-01T14:29:44Z")

</div>

Have you tried checking in the developer-tools (in the Menu “View” under “Toggle Developer Tools”) if the style is applied to the row?

You can check which styles are applied to the grid / row / cell and if something else overrides the style.

---

<div class="post-metadata">

**Author:** ![dev-ws-011](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dev-ws-011](https://forum.servoy.com/u/dev-ws-011)\
**Post date:** [April 4, 2022, 11:25am UTC](https://forum.servoy.com/t/table-component-row-styleclass-dataprovider-is-reset/20723/3 "2022-04-04T11:25:35Z")

</div>

> robert.edelmann:  
> Have you tried checking in the developer-tools (in the Menu “View” under “Toggle Developer Tools”) if the style is applied to the row?
> 
> You can check which styles are applied to the grid / row / cell and if something else overrides the style.

Yes, initially, it appears with correct style but as soon as record is selected its style is removed and normal table style gets applied.
