Showing results for 
Search instead for 
Did you mean: 
Kudo Kingpin
Kudo Kingpin

Display Icons in my Gallery

Hi there,

I have some icons in my gallery that I would like to display based in a couple of conditions:


If and Item is selected = display Edit_Icon

If edit icon is selected = display "Trash_Icon", "SaveI_con" and "Cancel_Icon"


If for some reason the user select a different row in my gallery previous icons = hide


I have some setup done:




Visible = ThisItem.IsSelected

OnSelect = UpdateContext({LetsEdit: !LetsEdit})


Trash, Save and Cancel =


Visible = LestEdit

Trash on Select = Select(Parent);UpdateContext({varShowPopup:true})

Save  on Select = Patch + UpdateContext({LetsEdit: false}

Cancel on Select = UpdateContext({LetsEdit: !LetsEdit})


But is showing all o fht icons for every single row and also still showing if I select a different row.


Could someone please point me in the right direction?


Thanks in advance



Capture1.PNG  Capture2.PNG  Capture3.PNG

Helper I
Helper I

For my understanding, since the icons are gallery icons, they will appear in every item of the gallery. I prefer to use these icons outside the gallery and refer to the gallery.selected item (best through a variable: set(varSelectedGalleryItem, gallery.selected).

But never tried to change icons visibility of individual gallery items differently.

If you like to block selecting other items during edit etc. you are able to set the DisplayMode property of the gallery like:



Hope that helps


If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Kudo Kingpin
Kudo Kingpin

Thank you, but there is no way to hide the other icons or show in the same way that I did with the edit_icon?



Visible = ThisItem.IsSelected

Helper I
Helper I

personally I set a variable for each icon where I like to switch the visibility and/or Displaymode (I like to have a icon greyed out, when another icon is activated). So it is easy for each icon outside a gallery and within. But inside the gallery setting for all gallery items at once...


If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (66,266)