Show images instead of checkbox on TMSFNCDataGrid

Hello,
I'm trying to use TMSFNCDataGrid to show datas retrieved by a FDQuery using the TMSFNCDataGridDatabaseAdapter. I'd like to show for boolean fields a Check image instead of the classic checkbox if the row value is true or an empty space if false. With the TMSFNCGrid I didn't have any issue, I worked on the GetCellLayout event, now I'm encountering some trouble: if I assign to the column the PictureField property as true, the boolean value isn't accessible, if I try to draw a bitmap in the AfterDrawCell event I get a stack overflow.

Is there any advice you can give to me?

Hi,

I've attached a sample on showing how you can link a Boolean field (or checkbox field) to an image instead.

Sample.zip (19.4 KB)

It involves specifying the Type property at column level to be a bitmap. Then you can override an event to show a specific bitmap for the Boolean value of a cell.