@mikemaccarthy
On the OnSelect of your gallery, set a variable to false.
Set(varGalleryVisible, false)
Set the Visible property of the gallery to this variable.
Then, on the OnSelect of a button or icon that you might have to close the details view of the selected record, use this:
Set(varGalleryVisible, true)
Let me know if this helps.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Microsoft Certified Trainer MCT
Blog | Twitter | LinkedIn | Facebook | YouTube | Email