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 / Change Gallery Row Hei...
Power Apps
Unanswered

Change Gallery Row Height based on data size

(0) ShareShare
ReportReport
Posted on by 203

I have a gallery setup like a datatable/spreadsheet. I've already added a lot of code to it so far, so I'm trying to avoid having to start over and use an adjustable height gallery. Is there a way to have the height of the row automatically based on data in the row? some columns have several lines of data and need to adjust the height .

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at
    Yes use or insert flexible height Gallery. Watch
    https://youtu.be/1zWRoWinKF8
  • saturation Profile Picture
    203 on at

    But is there a way to convert an existing gallery to a flexible height gallery? I've already spent hours and hours formatting and adding code to my gallery and I'd have to redo the whole thing to start over.

  • eka24 Profile Picture
    20,923 on at
    You can select the labels inside the Gallery and Set the Auto Height property to true. That Case the labels will expand automatically
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@saturation,

     

    Based on the issue you mentioned, you want to make your current Gallery an adjustable height.

     

    Just confirm, have you set the AutoHeight property to true?

     

    I have a test on my side which goes well.

    !.png

    Please try to set the needed Label AutoHeight property as: true

     

    Best Regards,

    Qi Qiao

  • saturation Profile Picture
    203 on at

    Setting the auto-height on my gallery adjusts the height, but only to the max of my template size, which is 60. Can the template size adjust automatically also to account for the data, or does the template size have to stay fixed? See my screenshot.

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@saturation,

    Do you want to change the template size of the gallery?

    • Set the Label AutoHeight property: true
    • Find and copy the expression in the Y property of your needed Label
    • Put the copy result in Gallery TemplateSize property and do an addition
    • 0506-02.png0506-01.png

    Best Regards,

    Qi Qiao

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