How to Activate and Use the Record Marker of a GridLast reviewed: October 31, 1995Article ID: Q138913 |
The information in this article applies to:
SUMMARYThe record marker is the small box on the leftmost side of each record in the grid. There will be a black arrow in the record marker of the current record if the grid has the focus. The record marker of a grid does not move when scrolling though a table if the grid does not have the focus as the record pointer is being moved. If the grid does not have focus, then the record marker will not appear beside the current record until the grid receives the focus. The record marker box is available only if the RecordMark property of the grid is set to true. Use the SetFocus property to make the record marker of the grid refresh every time a record is moved.
MORE INFORMATION
Step-by-Step Demonstration
Adding the Next and Previous ButtonsIf you are using command buttons created by the Form Wizard, place the following code in the Next button of the command button group:
TXTBTNS.CMDNEXT::CLICK THISFORM.GRID1.SETFOCUS()This will call the code in the Click event of the base class of the Next button. To make the Prior button work, change the CMDNEXT to CMDPRIOR in the above code. Setting the focus to the grid each time that the record pointer is moved allows the record marker to be updated. If another object on the form is clicked, the record marker will disappear until the grid receives the focus again.
|
Additional reference words: 3.00 VFoxwin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |