[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Current record to the bottom of the TDBGrid

Posted on 2002-03-30
2
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

650 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