Hi, You can add an image in HTML by returning the correct string in the OnGetCellData or by setting the string directly on the Cells property.
procedure TForm1143.TMSFMXGrid1GetCellData(Sender: TObject; ACol, ARow: Integer;
var CellString: string);
begin
CellString := '<img src="name of icon in bitmap container"/> Hello World !';
end;
TMSFMXGrid1.Cells[3, 4] := '<img src="name of icon in bitmap container"/> Hello World !';
And assign a TTMSFMXBitmapContainer to the grid which has the correct names for the icons.
Kind Regards,
Pieter
Pieter Scheldeman2014-01-24 02:51:21