TTMSFNCGrid FixedColumns alternate row color?


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);
  if Odd(ARow) then

Thank you!

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.