# Perspective Table selectedrow disable or change colour

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-selectedrow-disable-or-change-colour/58578>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 19, 2022, 4:53am UTC](https://forum.inductiveautomation.com/t/perspective-table-selectedrow-disable-or-change-colour/58578 "2022-04-19T04:53:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [April 19, 2022, 6:51am UTC](https://forum.inductiveautomation.com/t/perspective-table-selectedrow-disable-or-change-colour/58578/2 "2022-04-19T06:51:42Z")

</div>

You can style a row by adding style/value keys before the data.  
You could add a background-color, or set the row a bit transparent with opacity, maybe change the `cursor:not-allowed` (for the cursor icon) and `pointer-events:none` (to prevent clicks)

You'll need some logic (session prop?) to keep track of what is selected i guess and do some script like this

> [@Perspective table cell color](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047):
>
> Hi All Using this link below I have been able to set the color of individual rows in a Perspective table based on the value of a cell. I would like to set the colors of individual cells. I can see that the script below is setting a style for the whole row. I have tried to loop through my dataset and assign a style to each cell without any luck. Please can someone point me in the right direction? Thanks! [[Feedback] NEW Perspective Table - Ignition Early Access - Inductive Automation Forum](https://forum.inductiveautomation.com/t/feedback-new-perspective-table/21199/47) outp…

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-table-selectedrow-disable-or-change-colour/58578)._
