Forum > LCL

TStringGrid and scrollbars

(1/1)

Kunstbanause:
Hi,

is there any way to change the position of the scrollbars of a TStringGrid within the code?
Like:

--- Code: ---begin
  stringgrid1.HorzScrollBar.Position := 0;
end;
--- End code ---

I searched but I couldn't find a way to manipulate the position of the scrollbars (or maybe I have overseen it).

Thanks in advance for (hopefully) positive answers :)

theo:
I don't know if you can move the scrollbars in code, but you can "navigate" to a certain cell using:


--- Code: ---StringGrid1.Row:=20;
StringGrid1.Col:=5;
--- End code ---

Navigation

[0] Message Index

Go to full version