web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Paste Gallery to Anoth...
Power Apps
Answered

Paste Gallery to Another Screen Formatting is Not Retained

(0) ShareShare
ReportReport
Posted on by 53

I have a gallery control formatted with substantial data, when I copy (G1 Below) and paste into another screen, formatting is lost. While it’s pasting you can see the format is retained; however when the task is complete the formatting is lost (G2 Below). The Width, X & Y properties convert to “1” or Null.

 

If you create a component and Copy & Paste the Gallery into the Component and then insert the component into a responsive container, the format is retained; however components a Not Responsive.

How can I cut and past and retain formatting...Thanks

 

G1

 

Syvenn_0-1670777372596.png

 

 

G2

Syvenn_1-1670777372598.png

 

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    @Syvenn copy-pasting controls can cause formatting issues, especially once you add more complexity to them (e.g. responsive galleries). If you need the exact same code/controls or just overall architecture, it is better to create them as components in your application.

    This will not only make your app more maintainable, but will save you a lot of formatting and control renaming troubles.

    In my experience you can make components fully responsive. Properties such as Parent.Height & Parent.Width can be accessed. You are also able to use Component Input Variables (Custom Property), to adjust the width, height, Size... of your controls with data from your app screen (e.g. ScreenSize). (Output variables can be used to fetch data from the component to the app)

    Should you be interested in responsive component design, there are numerous YouTube tutorials on this

  • Verified answer
    VJ-22072138-0 Profile Picture
    53 on at

    Understood, thanks for the reply!

  • LennartWalldén Profile Picture
    173 on at
    I think it's a bug that you can't copy an existing gallery and paste it in a container. The X,Y and Width values should be maintained. You can Copy&Paste galleries acrioss screens with all properties maintained, so it should be possible.

    For us with big apps that was built before we had the container control, it's quite a lot of work to build a component rather than just Copy & Paste, if we want it responsible or just use containers as structure elements.
     
  • Suggested answer
    philip_dt Profile Picture
    12 on at
    This is a terrible bug and it affects copy/pasting even in the same Screen.
     
    I created a diff of the changes when you copy paste: https://www.diffchecker.com/X9AgApYj/
     
    You can see some Width values copy across just fine, others are either not pasted at all or are set to something else. X values seem to be the worst affected but this doesn't seem to be due to them having a complex formula as even simple integer values just vanish/change. Also, Height values with complex formula are unaffected.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 211 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard