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 / colour row of the table
Power Apps
Unanswered

colour row of the table

(0) ShareShare
ReportReport
Posted on by 90
is it possible to color the rows of a table, when a value changes between one row and another?
Thank's in advance
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,030 Most Valuable Professional on at

    Hi @gioce ,

    You can colour the row of a gallery with the TemplateFill setting. If for example you wanted all values in a field called Status where the value was Complete to be coloured Yellow, you would put n the TemplateFill of the Gallery

    If(
     ThisItem.Status="Compete",
     Yellow,
     White
    )

    Is this what you are asking?

     

    Please click Accept as solution 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 Thumbs Up.

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    I guess you are referring to a Datatable?

    If you are using a Datatable, there are limitations so son cannot do that.

     

    If you are using a Gallery, you can arrange the labels inside the Gallery to look like a Datatable. With that you can use the color.

     

    You may have to give more information on the conditions under which you want the color.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @gioce 

    Put this code in the TemplateFill property of your gallery.  It will work assuming each row has an ID number.

     

    If(Mod(ThisItem.ID,2)=1, White, Blue)

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • gioce Profile Picture
    90 on at
    hi, I tried with this string but in fact the field is colored only when I click on it. Is there a way to see the fields of all the rows directly colored, without clicking on them? Thanks in advance
  • WarrenBelz Profile Picture
    153,030 Most Valuable Professional on at

    @gioce ,

    Who are you responding to here? Alternate rows as per @mdevaney 's post will work if the gallery is sorted in ID order and you want every second row coloured (but not for other sorts).

    My solution will work if you want items with a specific value shaded.

    You have marked @eka24 's as the solution.

    Your picture refers to none of these and none require selecting the gallery item.

  • gioce Profile Picture
    90 on at
    I apologize, but perhaps I have not been clear in the exhibition. I want the individual rows to be colored differently depending on the type of visit they find, taking the color (in hexadecimal) from the sql table
     
     
  • WarrenBelz Profile Picture
    153,030 Most Valuable Professional on at

    OK @gioce ,

    That's sort of what I posted except for the hex bit.

    Yo can set Variables with Hex colours

    Set(
     vColor1,
     ColorValue("#24e34a")
    )

    is a light green - your conditional TemplateFill would be vColor1.

    All you need to do is Lookup your table for the colour you need.

     

    Please click Accept as solution 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 Thumbs Up.

     

  • eka24 Profile Picture
    20,923 on at

    If you have the colors in your SQLTable example ColorColumn, then in the Template fill put:

    ColorValue(ThisItem.ColorColumn)

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard