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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

 

I'm trying to create table structure in canvas app with vertical and horizontal scrolls. It has large number of columns so it will not fit in the window and require horizontal scroll.

 

Another requirement is that there are an action section, to view/edit each item in the gallery. We need to freeze these two columns when user scrolls horizontally. 

 

I did refer below awesome guide to achieve this using a slider control:

https://michalsacewicz.com/power-apps-horizontal-scroll-in-a-vertical-gallery-with-freeze-panes-effect/

 

I was wondering if there's any method without using slider control and rely on native scroll? Has anyone tried this?

 

Thanks

I have the same question (0)
  • v-jefferni Profile Picture
    on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Hi @rbn_nue ,

     

    I don't think there is a way. The reason is the native scroll bar of Gallery cannot interact with any other controls than the Gallery itself. In other words, other controls cannot know where the scroll bar is. 

     

    Best regards,

  • Static Profile Picture
    118 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Hi @rbn_nue 

    So, you can use container Horizontal Scroll in Vertical Gallery. For me this is a best way and most responsive for different type of screen.

     

    For example: 

    There may be a requirement of showing more columns (horizontally) like table in a vertical gallery, by default vertical gallery will not offer horizontal scroll to show more details.

     

    But there is a workaround to achieve this. Refer below for the steps:

    1. Create a horizontal container and fit it in screen. Example: Width = 500
       Set following properties: (hiding vertical scroll here as vertical gallery displays one)

    Static_1-1689236551985.png

    2. Create a vertical gallery inside horizontal container with the width you are looking for. Example: 1000
    Set following properties:

    Static_2-1689236589561.png

    3. Use normal container for headers in case vertical gallery to be shown like a table.
    Set following properties:

    Static_3-1689236616740.png

    Tree View:

    Static_4-1689236644619.png

    Output: 

    After making above changes, horizontal container shows horizontal scroll which will look like in-built horizontal scroll in vertical gallery.

    Static_5-1689236692426.png

    Note:

    Make sure to have same width for header and gallery elements to properly aligned like a table.

  • rbn_nue Profile Picture
    on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Thanks for the response @Static 

     

    Although I'm looking for a way through which we can freeze couple of columns as well. So two columns should not move when scrolling horizontally, all others should move. 

  • Static Profile Picture
    118 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    So, if you want freeze a couple of columns, let say two first. In this way you can create additional Gallery and show just these two as here in this video. Easiest way.  This i think what you need.

    https://www.youtube.com/watch?v=8CBosd_PG74

    Also you can try use Creator KIT, Fluent List. 

    https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/overview

     

    Best Regards,

    Anton Nyrkov

     

  • gcmfaizan Profile Picture
    1,022 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Ì have an idea that is quite simple and fullfill your requirement,
    my recommendation is those 2 columns out of the horizontal container and the gallery in the container remain samin just exclude that column, but make sure you use same filter query on both galleries, inter (that is in container), and outer.


    If my reply helps, then please give me thumbs up.

  • rbn_nue Profile Picture
    on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Hi @gcmfaizan 

     

    Thanks for the response. How would you achieve vertical scroll in this scenario?

     

    Thanks

  • rbn_nue Profile Picture
    on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Hi @Static 

     

    That was a beautiful tutorial. Although it does not have vertical scroll, which is needed. Thanks for your suggestion. 

  • gcmfaizan Profile Picture
    1,022 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Hi @rbn_nue ,

    to do this firstly add a vertical container and set properties as (named as ParentContaier in the screenshot):
    Vertical Overflow = Scroll
    Height = Parent.Height (Means Screen Height)
    Width = Parent.Width (Means Screen Width)


    add another container (named as ChildContainer) and do the same thing as above for height and width,


    now add a gallery (named as GalleryForStaticColumns) and set height = Parent. Default and Width as per your need, then add label control to show columns data and set column width and positions.

     

    Now add a horizontal container (named as ContainerForHorizontalScroll) and set properties as:

     

    Horizontal Overflow = Scroll
    Height = Parent.Height (Means Screen Height)
    Width = Parent.Width (Means Screen Width)

     

    Add a vertical gallery (named as Vertical Gallery) and set properties as:
    Height = Parent.Default
    Width = (NumberOfColumns * WidthOfLabel) e.g: 10*150 = 1500
    Data Source = your filter query

    Now add a Horizontal Gallery (named as HorizontalGallery) and set properties as:

    Template Size = Parent.Width - Padding e.g: 1500-5=1445

    Data Source = Filter('Your Table Name', 'GUID Column' = ThisItem.'GUID Column')
    Width = Parent.Width - Self.X
    Height = Parent.TemplateHeight

    now add labels in this gallery to view data.


    Please mark this as the solution to help others.


    AllControlls.pngParentContinorProperties.pngScreenwithHorizontal&verticalScroll.png

     

  • PowerApps880 Profile Picture
    10 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    Is it possible to freeze the last column instead of first one? I think there was a way in the blog but the blog is no longer active kindly suggest if anyone implemented this

  • gcmfaizan Profile Picture
    1,022 on at
    Re: How to create a horizontal and vertical scrollable gallery with freeze pane in canvas app?

    @PowerApps880 kindly see my last reply above in the same thread. the way I freeze the first 2 columns, the same way you can freeze the last two.


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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard