I created a column of images using the:
AdvStringGrdi1.AddImageIdx(wCol, wRow, wImage_ID, haLeft, vaCenter);
But the column background is not respecting the colors defined in the propertiesBands.PrimaryColor and Bands.SecondaryColor:
![screen](https://support.tmssoftware.com/uploads/default/original/2X/6/60e5530d3332d7b872dd66fd8ad803a6544aad90.png)
How can I fix this?
Do you add the images AFTER you set the band color?
Alternatively, set banding colors via grid.OnGetCellColor()
Hi Bruno,
I defined the colors after placing images because I only know the colors that should be used after the TAdvStringgrid is filled.
I solved the problem by moving the "Bands.Active:=True" before putting the images (it was in the routine that retrieves the colors).
The new code is now:
:
AdvStringGrid1.Bands.Active:=True;
[add data & imagens to AdvString]
[define StringGrid colors]
:
![screen2](https://support.tmssoftware.com/uploads/default/original/2X/b/bfb806f06656206b730570cd72cc8576cad1f6be.png)
Thank you