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.


