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 / Display Parent and Chi...
Power Apps
Suggested Answer

Display Parent and Child Records Dynamically with Auto Height in Power Apps

(0) ShareShare
ReportReport
Posted on by 10

Hello Community,

Recently, I was working on a POC where I wanted to display parent and child records on a single screen in Power Apps.

The requirement is to show the child records dynamically under each parent record, and the height should automatically adjust based on the number of child records available.

I checked online for a similar approach, but I couldn’t find a clear solution for this scenario.

Has anyone implemented something similar in Power Apps? Is it possible to achieve this with dynamic height adjustment, or is there a better approach you would recommend?

Any suggestions or examples would be really helpful.

Thanks!

Categories:
  • Suggested answer
    Henil Profile Picture
    23 on at

    Hi @PHA25,

    Yes, this is definitely possible. I also worked on a similar POC where I created a 3-level dynamic gallery in Power Apps. The same approach can also be extended to support any number of levels, with the gallery height adjusting dynamically based on the records.

    It can be a little tricky from a UI and development perspective, especially when handling the dynamic heights, but yes, it is definitely achievable in Power Apps.

    Please refer to the link below where I have shared my POC and demonstrated how the dynamic parent-child gallery works:
    https://www.linkedin.com/posts/henil-patel25_powerapps-powerplatform-canvasapps-activity-7407701383275175936-6T3L?utm_source=share&utm_medium=member_desktop&rcm=ACoAAECmA2kBbliivaobz7dChFEU7Vffce1YE2I

    If you'd like to know more about the approach or implementation, I’d be happy to connect on LinkedIn and discuss it further. 

    ✅ If this solves your issue, please Accept as Solution so others facing the same problem can find it more easily. A Like is always appreciated if this helped point you in the right direction!

  • Suggested answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at
    Hi @PHA25
    I am assuming you are referring to a nested gallery here with the child record gallery nested inside the parent. I also assume that you have the Items of each gallery sorted out (if not, happy to assist).
     
    The simplest way of making the child gallery a dynamic height is to set the TemplatePadding to zero 0 and the Height to
    Self.AllItemsCount * Self.TemplateHeight

    This will then adjust the height of the parent gallery to fit in whatever the child gallery expands to.
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    11manish Profile Picture
    4,632 Super User 2026 Season 2 on at
    Yes, your requirement is achievable. The flexible-height parent + dynamically sized child gallery is the most direct solution, but for a large production dataset, I would favor a single parent gallery with a separate child gallery that loads only when a parent is selected to avoid the performance problems associated with deeply nested galleries.

    example :
    CountRows(galChild.AllItems) * galChild.TemplateHeight
     

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 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard