I use e.imageindex within CellDynamicContents to set an image of a cross 'X', or image of a tick within a cell based on the content of the underlying data
I want to look down the grid and find all items with a cross image, or all items with a tick image, depending on what searching I am performing.
The routine which searches the grid for cross or tick is in a separate class, so does not know the rules applied by the calling application for it to place a tick or cross image in the cell.
I loop through the cells looking at .cells(row,col).imageindex in order to see if that belongs to the index for a cross or the index for a tick from the grids imagelist.
However, my loop .cells(row,col).imageindex always returns -1
I can only assume that setting the imageindex within CellDynamicContents does not actually store the image index in .cells(row,col).imageindex
How do I check what image is in a cell having displayed it using CellDynamicContents, or should I be setting this image elsewhere?
Thanks