How to change visibility of images in GridPanel?

Hi.
Is it possible in GridPanel, using images, on button click, turn on one image in this grid and turn off another one?
It would be like “choosing a spaseship using arrows”, but i dont understand how to do it.

Since you’re hard-coding everything here, what’s stopping you from setting the visibility of the appropriate image directly?

onButtonClick → GetImage → SetVisibility