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 / To disable additional ...
Power Apps
Unanswered

To disable additional rows in a gallery using a refresh icon

(0) ShareShare
ReportReport
Posted on by

I have a data store it in excel sheet (20 rows) and I disable them using gallery and I disable the show scrollbar to show only (5 rows), I need to use a refresh icon to refresh the data shown by disable the another (5 rows) and continue. 

noor12_0-1696319903555.png

noor12_1-1696319935106.png

 

 

Categories:
I have the same question (0)
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    It seems like you're trying to implement a paging system where the app shows the first 5 rows, and then after the button is clicked, the next 5 are displayed, etc. 

     

    The easiest way to do this is to have a field in the excel file exactly like what you displayed in the image: a field that has an incrementing number. If that really does exist in the table:

     

    1. in the appstart event in the app, set a variable that we'll use to set the row number of the first row to display: set(varPageStart,1)
    2. In the refresh button, set that variable in increase by 5: Set(varPageStart,varPageStart+ 5)
    3. In the gallery, set a filter to show rows where that column has a value from the value of varPageStart and the next 5 rows: Filter(Table1,Value(Field1) >= varPageStart && Value(Field1) < varPageStart+ 5)

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard