Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Which method do I need to use to scroll a Grid control up or down?

Posted on 1998-09-18
1
Medium Priority
?
181 Views
Last Modified: 2010-04-06
Hi!!! I need to scroll in my program the grid control, 1 row up or 1 row down.. how can I do that?

Thanks in advance
Jaime
0
Comment
Question by:skel
1 Comment
 
LVL 4

Accepted Solution

by:
erajoj earned 150 total points
ID: 1340206
Hi,
If you're using TStringGrid (or decendant):

procedure TForm1.Button3Click(Sender: TObject); // scroll up
begin
  with StringGrid1 do if TopRow < RowCount - VisibleRowCount then TopRow := TopRow  + 1;
end;

procedure TForm1.Button4Click(Sender: TObject); // scroll down
begin
  with StringGrid1 do if TopRow > FixedRows then TopRow := TopRow  - 1;
end;

/// John
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question