I checked the example and it nice, althought i need to click at the first time in the title row to see the icons for the first time. Anyway, it works.
checking this example as proposed by @howardpc , and taking into account what propose @wp, i created this code assigned to a speed button:
(...)
StringGrid1.FixedRows := 1;
StringGrid1.FixedCols := 0;
for i := 0 to StringGrid1.Columns.Count - 1 do
begin
StringGrid1.Columns[i].Title.ImageIndex := 0;
end;
StringGrid1.AutoSizeColumns;
(...)
It compiles, but the title row does not shows any icon. Neither before to click on each one of them...
Yes, the TitleImagelist option of the stringgrid points to Imagelist, and fixedrow = 1;
Do you know if i need to change any other option or change this code in some way?
About the StringGrid1DrawCell solution proposed by @Michl, It works! I need to study how to modify to fit my requirements, but at least, i see the icon on the title cells!