FMX Teegrid set/get top/left most visible column and row
Posted: Fri Oct 25, 2024 4:45 am
What is the best way to get and set the left most column currently shown (when the grid is scrolled sideways) ?
Similarly, how do I set the top most row currently shown (when the grid is scrolled down) ?
As an example I tried the following code to get the LH column shown but it always returned zero.
I am able to GET the top row via this code, but cannot find anywhere in the sample code or docs on how to manually scroll to a given column and row
Thanks
Brian
Similarly, how do I set the top most row currently shown (when the grid is scrolled down) ?
As an example I tried the following code to get the LH column shown but it always returned zero.
Code: Select all
function LHColumn:integer;
var myColumn : TColumn;
begin
MyColumn:=TeeGrid1.Columns.FirstVisible;
result:=myColumn.ID;
end;
Code: Select all
iTopRow:=TeeGrid1.Rows.FirstVisible(0);
Brian