203
Views
4
Comments
Solved
[OutSystems Data Grid] How to highlight a row by giving text color in outsystems datagrid
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

I need to highlight a row by giving different font color based on a condition in outsystems datagrid. If anyone know the solution, can help me on this?

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Suriyakala S 

That scenario is a perfect fit for the Conditional Format feature that you can see described (and with working examples available for download on the Forge) on the OutSystems Data Grid Sample.

Best Regards,
GM

2018-08-26 20-34-32
Pankaj pant

@Suriyakala S  it that a table record or datagrid?

can you specify more to help you better.

BR,

Pankaj

2026-05-21 13-56-29
Suriyakala S

I'm using the datagrid.

For example, i need to check the condition with one of date column value, the conditions are

The Date within next 7 days - font color = blue

The Date within next 2 days - font color = orange

The Date prior to today - font color = red, bold.

This would apply to the text in all columns of the entire row.

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Suriyakala,

You can use the approach suggested in these post that addresses the same use case:

set-conditional-format-to-the-dataGrid-row

data-grid-highlight-entire-row-based-on-condition

set-row-background-depending-on-cell-value

how-to-change-color-of-one-cell-depending-on-other-cell-value-in-data-grid

PS: For better clarity, I have tagged OutSystems DataGrid Forge Asset to the post.


Kind regards,

Benjith Sam

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Suriyakala S 

That scenario is a perfect fit for the Conditional Format feature that you can see described (and with working examples available for download on the Forge) on the OutSystems Data Grid Sample.

Best Regards,
GM

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.