Andrew Price
2020-06-22T21:38:35Z
My grid contains a column with various dates indicating when a system backup was taken.

Instead of displaying the date in each cell within the column, I would like to display an image (lets say a green tick) from an Imagelist control if the date is within 1 week of today, within each appropriate cell.

How could I accomplish this please?

I have tried using customdrawcellforeground and celldynamicstringformat but when I set the image for the cell within these the grid displays nothing in the column and all other controls on my form no longer paint correctly.

Any help would be appreciated.

thanks
Andy
Igor/10Tec
2020-06-23T15:18:43Z
A quick answer is to use the CellDynamicContents event and the ImageIndex property of its event data object.
Andrew Price
2020-06-23T18:18:11Z
Thank you - so simple.