Solved

Current record to the bottom of the TDBGrid

Posted on 2002-03-30
2
263 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
Comment Utility
? maybe, use two grids,
both connected to the same datasource,
but one shows only the current record (height-property)
0
 

Author Comment

by:Monroe406
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

10 Experts available now in Live!

Get 1:1 Help Now