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 / Vertical Gallery with ...
Power Apps
Answered

Vertical Gallery with horizontal scroll

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it possible to change default sort order by column to sort by row?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Can you please show an example?  I am confused about what you want to do.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have items ordered (Ascending).

    I cannot use the Horizontal Gallery (It is a requirement to have a horizontal scroll), but the gallery with wrapcount a 2  show the data of a collect MyData in vertical order. 

    Mydata

    Nome Rowcount

     xxx      1

    zzz       2

    etc

     

    For example  RowCount contains

    1,2,3,4,5,6,7,8,0,10,11,12,13,14,15

     

    I obtain 

    1 3  5 7 9 11 13  15

    2 4 6 8 10 12 14
    Can i obtain 

    1 2 3 4 5 6 7 8  

    9 10 11 12 13 14 15

     

     

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to make "1,2,3,4,5,6,7,8,0,10,11,12,13,14,15" looks like this: "1 2 3 4 5 6 7 8

                                                                                                                        9 10 11 12 13 14 15"    ?

     If so, firstly you should not use Horizontal Gallery, because Horizontal Gallery will sort Horizontally, looks like this:

    "1 3  5 7 9 11 13  15

    2 4 6 8 10 12 14".

    You still need to vertical gallery, which sort vertically, looks like this:   "12345".

    Please notice that the wrap count of vertical gallery means that the row number in vertical.

    So the key point of your issue is to set the wrap count in vertical to one specific number which could make the gallery's row number is 2 in Horizontal.

    Try this:

    1)insert a vertical gallery

    2)set its Items:

    [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]

    3)set its WrapCount:

    RoundUp(CountRows(Gallery2.AllItems)/2,0)

    Then the gallery will always have two rows in Horizontal. The row number in vertical is decided by the items number.

    6102.PNG

     

     

     

    Best regards,

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard