Current record to the bottom of the TDBGrid
Posted on 2002-03-30
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?