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

Notifications

Announcements

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

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,989 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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard