web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Changing gallery row b...
Power Apps
Unanswered

Changing gallery row background color based on text value

(1) ShareShare
ReportReport
Posted on by 6
Is there a way to change background color of individual rows in a gallery based on a text box value?
 
For example, one of the rows shows a value in one of the columns of 25.  If a warning text box shows a value of 30, anything less such as 25, would display the row with a yellow (warning) background.  I'm considering an alert box as well - so if that value goes below 20, it would display that single row with a background as red.
 
If there's no native way, I could envision placing multiple rectangles beneath the gallery - but I'm not sure if that would work either, or if there's a better way...
Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,471 Super User 2026 Season 1 on at
    Hi,
     
    It's better if you can share some screenshot and explain what need to be replaced with which color?

    for your reference check below link

     
    Thanks,
    Srini
  • WarrenBelz Profile Picture
    155,450 Most Valuable Professional on at
    It is actually the TemplateFill property of the gallery you need to adjust here. So
    If(
       ThisItem.YourFieldName <= 20,
       Color.Red,
       ThisItem.YourFieldName <= 25,
       Color.Yellow,
       Color.White
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard