Gridview: select item


I have a gridview in retool (desktop) and would like to open a modal after clicking on the image (or the button). The modal should contain the information of the product i clicked on.

The question is: is it possible to know what product_id, index or what block in the grid i clicked on?

I can't make it work.

Your hulp would be appreciated!

Thank you,


This is my gridview

Hi @corneel_martens,

You're close - you can access the index or value of the item in the gridview component by using the {{ i }} or {{ item }} values. i will give you the index, item with give you the value (ie: "Sla")


i've made a stupid error.
Just found out that I was looking at the wrong variable ...
Item indeed works. Thx Mike!