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

Notifications

Announcements

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,327 Super User 2025 Season 2 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
    153,127 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard