TMS FNC Data Grid always show fixed column stroke

When at least one fixed column is set in the grid, the stroke for this column is always visible to the bottom, when a horizontal scrollbar is visible:

If there is no scrollbar visible, this stroke isn't visible:

This should be consistent (always show stroke, never show stroke) or at least there should be an option for that, as that behavior is a bit weird in my opinion.

I think the intention was to make clear, that the fixed column(s) aren't scrolled?

Or maybe there is an option and i didn't found it? :-D

Set

Grid.StretchScrollbars := True;

or use the following code

procedure TForm1.TMSFNCDataGrid1BeforeDrawEmptySpace(Sender: TObject;
  AGraphics: TTMSFNCGraphics; ARect: TRectF;
  AKind: TTMSFNCDataGridEmptySpaceKind; var ACanDraw: Boolean);
begin
  ACanDraw := False;
end;
1 Like

Too easy :crazy_face:

Thank you

1 Like

No worries :slight_smile:

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