dBase DBF files and TDBGrid
Posted on 2002-04-11
If I create a dBase III DBF file, and create an index with this DBF, and then use Delphi 3 with a TDBGrid component, I notice unusual behavior with the TDBGrid whenever the Index is active.
Example, let's say the DBF contains 1000 records. When my D3 application is running, and the table is active, and the index is active, the only positions that you can move the thumb tracking button in the vertical scroll bar is: TOP, MIDDLE, BOTTOM (0%, 50%, 100%). It is impossible to move the thumb button to 25% or 75% or 33%. However, if I DROP the index (make it inactive), then I CAN move the thumb button to intermediate positions (10%, 25%, etc.).
Why is this, and how can I use an index with my DBF while at the same time be able to have better thumb button tracking control over the table?