Notifications
Announcements
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.
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
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
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
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);
Am I suppose to change "data source"?
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268