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