# Highlighting specific cells

**URL:** <https://forum.radzen.com/t/highlighting-specific-cells/15380>\
**Category:** Angular\
**Created:** [October 3, 2023, 11:29pm UTC](https://forum.radzen.com/t/highlighting-specific-cells/15380 "2023-10-03T23:29:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekJ](https://forum.radzen.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@AbhishekJ](https://forum.radzen.com/u/AbhishekJ)\
**Post date:** [October 3, 2023, 11:29pm UTC](https://forum.radzen.com/t/highlighting-specific-cells/15380/1 "2023-10-03T23:29:30Z")

</div>

Hello,

If we have to change the colour of the row. We use this.grid1.dataTable.rowStyleClass and the entire row colour changes. Is there a way where we can colour only specific cells in a column as highlighted in yellow below

 ![Highlight](https://forum.radzen.com/uploads/default/original/2X/e/e3f1abada7ec7f5813e82177bfd9acc03e38b766.jpeg)

Regards

---

<div class="post-metadata">

**Author:** ![AbhishekJ](https://forum.radzen.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@AbhishekJ](https://forum.radzen.com/u/AbhishekJ)\
**Post date:** [October 9, 2023, 10:04pm UTC](https://forum.radzen.com/t/highlighting-specific-cells/15380/2 "2023-10-09T22:04:22Z")

</div>

Hello,

I am still stuck with this issue. Could you please help me out.

Thanks

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 10, 2023, 6:38am UTC](https://forum.radzen.com/t/highlighting-specific-cells/15380/3 "2023-10-10T06:38:16Z")

</div>

You can use the form search - it is quite powerful:

> [@Colour row\\cell on datagrid based on value in row](http://forum.radzen.com/t/colour-row-cell-on-datagrid-based-on-value-in-row/533/):
>
> Hello In LightSwitch we were able to colour cells within a datagrid based on a value. Are we able to do the same in Radzen? (I also promise to try and stop referring to LightSwitch each time I ask a question wink) Otis

---

<div class="post-metadata">

**Author:** ![AbhishekJ](https://forum.radzen.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@AbhishekJ](https://forum.radzen.com/u/AbhishekJ)\
**Post date:** [October 11, 2023, 12:59am UTC](https://forum.radzen.com/t/highlighting-specific-cells/15380/4 "2023-10-11T00:59:04Z")

</div>

\<span \*ngIf="data.UnitPrice \>= 20" style="color: red;"\>  
${data.UnitPrice | currency}  
  
\<span \*ngIf="data.UnitPrice \< 20"\>  
${data.UnitPrice | currency}

Should this piece of code go in the template section of the column or the edit template section ?
