This was observed while migrating a grid from TMS FMX UI Pack to its FNC counterpart:
On a blank FMX project drop a TStyleBook and a TTMSFNCGrid
On the TStyleBook load the Dark.style FMX style that ships with RAD Studio
Assign the TStyleBook to the StyleBook property of the main Form
On the TTMSFNCGrid check the AdaptToStyle property
While the header cells have the right colors the normal cells still have the default background color.
Pieter
(Pieter)
August 21, 2023, 6:31am
2
You can disable banding & the default background for the cells with the following code:
TMSFNCGrid1.BeginUpdate;
TMSFNCGrid1.UseColumns := False;
TMSFNCGrid1.AdaptToStyle := True;
TMSFNCGrid1.Appearance.NormalLayout.Fill.Kind := gfkNone;
TMSFNCGrid1.Options.Bands.Enabled := False;
TMSFNCGrid1.EndUpdate;
Which should give you the desired result.
1 Like
Thanks. This works as intended now and luckily banding is not essential for our grids now, but support for it will be awesome as it worked well for TMS FMX UI Pack grids.
system
(system)
Closed
August 22, 2023, 1:28pm
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.