Hello,
I use bands with my TTMSFNCGrid . However when I set the Fixed columns:
MyFncGrid.FixedColumns := 1;
... the fixed column rows "lose" the alternate color. How can I set it?
Thank you!
Hello,
I use bands with my TTMSFNCGrid . However when I set the Fixed columns:
MyFncGrid.FixedColumns := 1;
... the fixed column rows "lose" the alternate color. How can I set it?
Thank you!
That's because the alternate color is only applied to normal cells. Fixed cells all have the same color. You can override colors with the OnGetCellLayout event
procedure TForm1.TMSFNCGrid1GetCellLayout(Sender: TObject; ACol, ARow: Integer;
ALayout: TTMSFNCGridCellLayout; ACellState: TTMSFNCGridCellState);
begin
if Odd(ARow) then
ALayout.Assign(TMSFNCGrid1.Appearance.BandLayout);
end;
Thank you!
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.