Recent

Author Topic: How can get scroll position of TStringGrid ?  (Read 1565 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
How can get scroll position of TStringGrid ?
« on: August 17, 2017, 08:59:44 am »
Hi
.
How can get scroll position of TStringGrid
How can get scroll position of DBGrid ?

i can't get position of scroll in the DBGrid and in the TStringGrid?
.
whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy >:D >:D >:D >:D >:D
.
.
i add (StringGrid1.InsertRowWithValues) row automatic in TstringGrid and i always want show last Row (always foucs last row).
.
but ican't :'( :'( :'(
.
can anyone help or guide me??

thankyou

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: How can get scroll position of TStringGrid ?
« Reply #1 on: August 17, 2017, 09:06:54 am »
have you tried
Code: Pascal  [Select][+][-]
  1.    StringGrid1.Row := StringGrid1.RowCount-1;
  2.  
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018