OnGetCellGrid
Called on a moment when grid lines of a cell are being painted.
pas
property OnGetCellGrid: TNxGetCellGridEvent read FOnGetCellGrid write FOnGetCellGrid;
Event provides opportunity to set TColor
and TPenStyle
for each of the borders surrounding cell.
Example
pas
procedure TForm1.NxReportGridView61GetCellGrid(Sender: TObject; ACol, ARow: Integer; var Edges: TNxBorderEdges; State: TNxCellPaintingState); begin if (ACol = 1) and (ARow = 2) then begin Edges[beLeft].Color := clBlue; Edges[beTop].Color := clRed; Edges[beRight].Color := clBlue; Edges[beBottom].Color := clRed; Edges[beBottom].Style := psDash; end; end;