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 / Blank Browse Gallery R...
Power Apps
Answered

Blank Browse Gallery Record Seperator

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to but a seperator between records in a Blank Browse Gallery.  Looking for a border around a record or if I could insert a line at the bottom of a record.

 

I used a label aand seit is a View and a black fill.  It works.

 

 

 

Thanks
Adam

Categories:
  • DavidBarclay Profile Picture
    31 on at

    Not sure if it helps, but in the gallery list of componts is "Seperator", you can set the border size, colour etc. on this?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried to set the gallery border, it didn't seperate individual records. 

  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    On a blank gallery, you can insert a Rectangle control (you'll find it inside the Icons group in the Insert tab in the ribbon), and set the following properties (assuming that the rectangle is called 'Rectangle1' and the gallery is called 'Gallery1':

    Rectangle1.X: 2
    Rectangle1.Y: Gallery1.TemplateHeight - Rectangle1.Height
    Rectangle1.Width: Gallery1.TemplateWidth - 2 * Rectangle1.X
    Rectangle1.Height: 2

    This will add a separator line on the bottom of each item in the gallery. You can change the rectangle's color (change both the border color and fill color) to the one you prefer, or change the X and Height properties to change how the separator looks.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks I inserted the rectangle and it worked.

  • AbulHassan Profile Picture
    46 on at

    @CarlosFigueira It worked - thank you

  • TomBertie Profile Picture
    16 on at

    But I don't think it works for galleries where the items increase in size.  I've got a label with auto-height enabled and they expand according to the amount of content.  The solution here will work if all of the gallery items are fixed at the template height but am not sure how it will work in my case.  Any ideas?


  • TomBertie Profile Picture
    16 on at

    Solved it, by refering to the height of the autosizing item as well as the gallery and choosing the maximum; as follows (where Label15_1 is the autosizing label, Gallery3 is the Gallery in question and Rectangle2 is the dividing line made from a box):

     

    Rectangle2.Height := Max(Label15_1.Height,Gallery3.TemplateHeight)-Rectangle2.Height

  • TomBertie Profile Picture
    16 on at

    Sorry, that should have been Rectangle2.Y not Rectangle2.Height Smiley Frustrated

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CarlosFigueira  how do i make this work? i am pretty confused about where the code will go. if anyone could help me out please?

  • jaredbidlow Profile Picture
    258 on at

    Is the gallery template height sized according to anything?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard