Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Change Gallery Row Height based on data size

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 .

Super User III
Super User III

Yes use or insert flexible height Gallery. Watch

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.

You can select the labels inside the Gallery and Set the Auto Height property to true. That Case the labels will expand automatically



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.


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


Best Regards,

Qi Qiao

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.


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

Helpful resources

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users


We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (36,983)