Grid with picture

From your documents, it seems picture can be put inside each cell of Grid1. I tried according to your sample in the following way:
Grid1.setValue(0,1,"")
It can’t show the picture. Would you help me for that?

SetValue can put html into a grid cell. You’ll have to make html to display an image.

Something like

imageHTML = "<image src='images/pic1.png'>"

Expanding on this:

<img  width = 35 height=25 src='ingredients.jpg' align = right id='grdListMenu_10_0' align=center>"```

where you can adjust the  the height and width of the image
where you can align the image in the cell
and where using the id specifying the row and column the on_click event will work.

John
1 Like

Thanks a lot.