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 Apps
Answered

Refresh Gallery

(0) ShareShare
ReportReport
Posted on by 56

Hi All,

I currently have a button that will update the data of the row I selected in power apps and I need the row to be deleted. How do I make it so that the button will also refresh my gallery by removing that row.

Thanks.

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @rytze 

     

    Try this on the OnSelect property of where you are removing the item:

    Remove('Data Source', ThisItem);
    Refresh('Data Source');

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @rytze, In order to refresh gallery, you can refresh the data source of gallery by using 

     

     

    Refresh(DataSource)

     

     

    and also use Reset(Gallery). This code will be after your other code on button.

     

    Check these: 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Refresh-Gallery/m-p/1408553

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Refreshing-Gallery-Items/m-p/2391661

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • rytze Profile Picture
    56 on at

    I'm not able to get the remove to work, the image below is an example of what I'm tying to remove when i click the X button and after clicking the Delete button in the popup.

    rytze_0-1702621571290.png

     

  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @rytze 

    You would have something like this.

     

    On the X button OnSelect property:

    Set(varSelectedRecord, ThisItem);
    Set(varPopUp, true);

     

    On the Delete button OnSelect property:

    Remove('Data Source', varSelectedRecord);
    Refresh('Data Source');
    Set(varPopUp, false);

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • rytze Profile Picture
    56 on at

    Am I suppose to change "data source"? 

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @rytze 

     

    Yes, you have not provided use with what your data source is called.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard