Datagrid image

DavyEFC

Well-known member
Joined
Dec 17, 2010
Messages
51
Programming Experience
5-10
I know this sounds like a daft question - maybe i have brain freeze at the mo?

I'm adding an image to a cell in a datagrid thus:

HTML:
frmMain.dgAlist(8, frmMain.dgAlist.currentrow.index).value = My.Resources.R1

and thats fine. But what i want now is to get the info of which image is in that datagrid column 8 cell in the row i click.
It could be any of 6 images R0-R5. I thought this would be the reverse:

HTML:
msgbox(frmMain.dgAlist(8, frmMain.dgAlist.currentrow.index).value)

...but obviously not!
 
For anyone that may find it useful (as the many that read the question didn't know!), the simple answer is to put the image name in the 'Tag' property.
 
Back
Top