Hello Boki,
I use OnGetCellColor to create a two colored grid like this,
procedure TfrmAvailable._ReportGridViewGetCellColor(Sender: TObject; ACol, ARow: Integer; var CellColor: TColor; State: TNxCellPaintingState); begin if not (csSelected in State) then begin if (ARow mod 2 = 0) then begin CellColor := JukeboxDefs._ColorListboxBackGroundNext; end else ; // CellColor := JukeboxDefs._ColorListboxBackGround; end; end;
That works fine if all rows are Showing. But when I use 'OnGetRowShowing' to hide some rows the colored order is messed up.
Can you create a new Event that will give the right Index in the Grid so the colored rows are right?
Hope you understand.
Regards,
Eduard.