I have a TMSFNCDataGrid, and want to hide the vertitcal lines in the grid. The horizontal lines should stay. How to do this?
I have tried:
// Header lijnen kleur
CellAppearance.FixedLayout.Stroke.Color:=clred;
// Cell lijnen kleur
CellAppearance.NormalLayout.Stroke.Color:=clRed;
But this gives the compleet colums a red line. Not only the horizontal
Pieter
(Pieter)
May 21, 2026, 9:20pm
2
Hi,
You can try the following code:
procedure TForm10.TMSFNCDataGrid1GetCellLayout(Sender: TObject;
ACell: TTMSFNCDataGridCell);
begin
if not TMSFNCDataGrid1.IsCellFixed(ACell.Coordinate) then
ACell.Layout.Sides := [gsLeft, gsRight];
end;
This works fine, but the header has still the vertical lines.
How to solve this?
Pieter
(Pieter)
May 22, 2026, 8:26am
4
Just remove the fixed cell part checking, the header have fixed cells
I did change TMSFNCDataGrid.FixedRowCount to 0 but then there’s no header.
The vetical lines in the header i want to be removed.
See the image
Pieter
(Pieter)
May 22, 2026, 9:37am
6
Edit this code into:
procedure TForm10.TMSFNCDataGrid1GetCellLayout(Sender: TObject;
ACell: TTMSFNCDataGridCell);
begin
ACell.Layout.Sides := [gsLeft, gsRight];
end;
Sorry, I didn’t looked there.
Thank!
system
(system)
Closed
May 23, 2026, 10:33am
9
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.