Hi,
How can I print borders on some cells only. I can disable printing borders by this:
procedure TSupiskyGrid.GetCellLayout(Sender: TObject; ACol, ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
if fPrinting then begin
ALayout.Stroke.Kind := TBrushKind.None;
ALayout.Sides := [];
end;
end;
But If I try print top line on aRow=1 (respectively bottom line on aRow=0), result is bad:
procedure TSupiskyGrid.GetCellLayout(Sender: TObject; ACol, ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
if fPrinting then begin
if (ARow =0) then begin
ALayout.Stroke.Kind := TBrushKind.Solid;
ALayout.Sides := [TSide.Bottom];
end
else if (ARow =1) then begin
ALayout.Stroke.Kind := TBrushKind.Solid;
ALayout.Sides := [TSide.Top];
end
else begin
ALayout.Stroke.Kind := TBrushKind.None;
ALayout.Sides := [];
end
end;
end;
Thank You.