Hello,
it looks you updated property FieldsAsColor in runtime after dataset activation, then PickList is not initialized correctly (in the current version picklist is loaded in DatasetActivation event and only if FieldsAsColor is not empty).
I will fix it in the next version. In meantime you can set the property before dataset activation or call procedure LoadColorPickList after setting (you have to use hack component as the procedure is protected).
Example:
type
THackrDBGrid = class(TrDBGrid)
end;
...
MyGrid.FieldsAsColor.Add('MyField');
THackrDBGrid(MyGrid).LoadColorPickList;
...
I hope it helps
Tomas
Dne středa 13. července 2022 v 13:45:58 UTC+2 uživatel RuGaDelphi napsal: