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

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,223 Super User 2025 Season 2 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard