TMSFNCDataGrid hide vertical lines

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

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?

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.

image

The vetical lines in the header i want to be removed.

See the image

Edit this code into:

procedure TForm10.TMSFNCDataGrid1GetCellLayout(Sender: TObject;
ACell: TTMSFNCDataGridCell);
begin
ACell.Layout.Sides := [gsLeft, gsRight];
end;

:woozy_face: Sorry, I didn’t looked there.

Thank!

no worries, :slight_smile:

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