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 / Enable Column Header S...
Power Apps
Answered

Enable Column Header Scrolling Within Horizontal Container

(0) ShareShare
ReportReport
Posted on by 61
In Microsoft PowerApps, I have a gallery inside of a horizontal container so users can scroll horizontally to the right to see all of the columns. I now need to label each column of the gallery. How do I ensure that the column labels or headers, will scroll along with the gallery? I was planning to use Text Labels for each column header, as illustrated per screenshot below, but it does not scroll. I cannot add the header directly to the gallery as it considers it another field.  Is there a way to "anchor" each column header to its' column so it scrolls as well? 
 
Below screenshot also shows that I left some space at the top of my horizontal container to accommodate the column header labels.  Thank you!
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    It can depend on what you are willing to do. You can use labels in a container, that you set the X value based on the gallery positions of columns making sure the columns and headers are the same width, then as you scroll the X position of the columns move, if you bind your x value for your headers to the X of the Columns as one moves the other moves... but only side to side 
  • Verified answer
    AC-16041448-0 Profile Picture
    61 on at
    Ok, I posted my question too soon  :) ==>> I added another horizontal container to accommodate the header rows and added my text labels there.  I placed this inside of my main horizontal container in the space I had allocated already right above my gallery.  I then set the 'X' property for the header container to the same as the Gallery (ie. GalleryName.X).  To align the spacing, I made sure each text label width was same length as the gallery field length and then used property 'LayoutGap' to ensure same spacing between each column. A bit tedious to ensure my gallery fields were spaced appropriately, but my scroll is working with all of the columns aligned!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard