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 / Responsive App using D...
Power Apps
Answered

Responsive App using DataCard and Containers

(1) ShareShare
ReportReport
Posted on by 49
In building a responsive App, why will a developer use containers inside a DataCard and place that inside a Fluid Grid, then embed that in a fixed container inside a horizontal container? 
Please see the attached logic. I've been trying to wrap my head around this around to building responsive app and wondering if someone out there also uses this approach and why?
 
Thank you
Categories:
I have the same question (2)
  • Verified answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    You have shared 100 page document 😯.
     
    I have shared my understanding, power-apps is not responsive in nature until unless we are forcefully creating the controls with containers.
     
    Data Cards
    • This is not layout control, this is used as wrapper for the form controls. 
    How I used containers in real time implementation
    • Horizontal Container (Screen)
    • Vertical Container (Sections)
    • Auto-layout Containers (fields)
    so you can create a layout in this format, there are responsive screen itself powerapps offering you can use it and adjust it accordingly. 
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
     
     
     
  • MelaninCoded Profile Picture
    49 on at
    @MS.Ragavendar Thanks for your reply. Being that I'm still learning the Power Apps, knowing some of these limitations and facts is very helpful.
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    322 on at

    Great question — and you’re not alone. Almost everyone who first sees a “deep-container” Power Apps layout has the same reaction:

    “Why is this so complicated? Surely this can’t be necessary.”

    It looks insane at first, but there actually is a very deliberate reason experienced makers use this structure — especially for true responsive canvas apps.

    Below is the mental model that makes it click.

    🧠 The core problem Power Apps is solving poorly

    Power Apps does not have:

    • CSS

    • flexbox

    • grid templates

    • media queries

    • real inheritance

    So responsive layout must be built using:

    • Containers

    • Auto-layout behavior

    • Parent.Width / Parent.Height math

    The layout system is primitive compared to modern web frameworks.

    Because of that, experienced builders simulate three separate layout responsibilities.

    🔺 The 3 responsibilities of responsive layout

    Every screen layout has three different jobs:

    Responsibility Purpose
    Page structure Header / body / footer
    Content flow How cards wrap on screen size
    Control layout How labels + inputs resize

    Power Apps forces you to solve each one with a different container type.

    That’s why the nesting exists.

    ✅ What each layer actually does

    Let’s walk from outside → inside.

    1️⃣ Horizontal container

    Purpose: page layout

    This container controls:

    • left navigation

    • main content area

    • optional right pane

    Example:

    | Nav | Content | Help |
    

    Why horizontal?

    Because on wide screens:

    Nav | Content
    

    On small screens:

    Nav
    Content
    

    This container handles overall screen responsiveness.

    2️⃣ Fixed container inside horizontal

    Purpose: limit max width

    This is extremely important.

    Without it, your app stretches like this:

    Label --------------------------------------------- Input
    

    Which becomes unreadable on ultrawide monitors.

    So developers add a fixed-width container, typically:

    Width = Min(Parent.Width, 1200)
    

    This creates:

    • centered content

    • readable forms

    • consistent UX

    Same reason websites don’t stretch text edge-to-edge.

    3️⃣ Fluid grid (responsive wrap engine)

    This is where responsiveness actually happens.

    A Fluid Grid:

    • automatically wraps DataCards

    • changes number of columns based on width

    • requires no formulas

    Example:

    Screen width Result
    1400px 3 columns
    900px 2 columns
    500px 1 column

    That’s something no standard container can do.

    This is the only true responsive grid system in canvas apps.

    4️⃣ DataCards inside Fluid Grid

    Purpose: semantic form layout

    DataCards give you:

    • field-level grouping

    • validation

    • display modes

    • accessibility

    • form integration

    You could place controls directly — but then you lose:

    • form submit

    • errors

    • required indicators

    • Patch automation

    So DataCards stay.

    5️⃣ Containers inside DataCards

    Purpose: internal control responsiveness

    This is the final layer people miss.

    Inside a DataCard you usually have:

    Label
    Input
    Helper text
    Error message
    Icon
    

    If you place those directly:

    • resizing breaks alignment

    • text wraps badly

    • icons overlap

    So developers use a vertical or horizontal container inside the DataCard to:

    • align label + input

    • auto-resize height

    • keep spacing consistent

    This makes each card responsive internally.

    🔁 Putting it all together

    So what looks like madness:

    Horizontal container
     └── Fixed container
          └── Fluid grid
               └── DataCard
                    └── Container
                         └── Controls
    

    Is actually:

    Page layout
     → Width control
       → Responsive wrapping
         → Form logic
           → Control alignment
    

    Each layer has exactly one job.

    💡 Why experienced developers use this pattern

    Because it gives:

    ✅ True responsiveness
    ✅ No magic width formulas
    ✅ Clean resizing
    ✅ Mobile + tablet + desktop support
    ✅ Accessibility
    ✅ Maintainability
    ✅ Form integration

    Without this structure you end up with:

    • dozens of Width formulas

    • brittle math

    • overlapping controls

    • broken mobile layouts

    🧠 Think of it like HTML

    If this were web code, it would be:

    <body>
      <main class="page">
        <section class="content">
          <div class="grid">
            <div class="card">
              <div class="card-layout">
                <label />
                <input />
              </div>
            </div>
          </div>
        </section>
      </main>
    </body>
    

    Canvas apps just don’t show it this clearly.

    ✅ Is this overkill?

    For small apps: yes.

    For enterprise responsive apps: absolutely not.

    If you want:

    • mobile friendly

    • tablet friendly

    • wide-screen friendly

    • zero overlap

    • minimal formulas

    This is currently the best-practice layout pattern.

    🚀 Final takeaway

    Developers aren’t nesting containers because they like complexity.

    They do it because:

    Power Apps splits layout responsibility across different container types.

    Each container solves a different problem:

    Layer Solves
    Horizontal container Page structure
    Fixed container Max readable width
    Fluid grid Responsive wrapping
    DataCard Form behavior
    Inner container Control alignment

    Once you see it that way, the structure actually becomes logical — even elegant.

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard