Solved

Current record to the bottom of the TDBGrid

Posted on 2002-03-30
2
265 Views
Last Modified: 2010-04-04
Using Delphi 3 with a TDBGrid and Paradox table...

I realize that DBGrid1.Last will move the current record position to the last record (bottom) of the DBGrid, however, I want to perform something different...

Rather than move the record position to the last record, I want to have the CURRENT RECORD POSITION placed at the bottom of the VISIBLE grid.  IOW, let's say I have a table of 1000 records, and the DBGrid.Height = 465.  With a DBGrid.Font.Size = 10 I can view approx. 20 rows in the grid.  Now, let's say that at the top of the VISIBLE grid we have record number 265, and record number 284 is at the bottom of the VISIBLE grid, and that the current record position is at 270.   What I want to do is to have record number 270 placed at the bottom of the DBGrid.

How can this be accomplished?
0
Comment
Question by:Monroe406
2 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 6907786
? maybe, use two grids,
both connected to the same datasource,
but one shows only the current record (height-property)
0
 

Author Comment

by:Monroe406
ID: 6918664
A better solution would be to resize the one grid.  The current record position jumps to the bottom of the grid whenever the grid shrinks in size (height).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now