PRB: Grid ActiveRow Mark Is Not Visible After Refreshing GridID: Q132354 The information in this article applies to:
SYMPTOMSWhen changing the active record in a grid through an external mechanism such as a command button, the record marker for the active record is not displayed when the record changes.
RESOLUTIONSee the example resolution given in the "More Information" section of this article.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. In the Command window, run these commands:
2. Add a grid to the form.
3. Add the VCR class from \VFP\Samples\Controls\BUTTONS.VCX. 4. Save and run the form. 5. Click the various VCR buttons. The record has changed but the marker for the new or active record does not display. If your status bar is on, you will see the record pointer moves but the record marker does not.
Example ResolutionTo correct this behavior, modify the VCR button code as follows: 1. In the Command window, issue this command:
2. Double-click the VCR buttons.
3. Select the cmdTop.Click event, and type these commands:
4. Select the cmdPrior.Click event, and type these commands:
5. Select the cmdNext.Click event, and type these commands:
6. Select the cmdBottom.Click event, and type these commands:
7. Save and run the form.
8. Click the various VCR buttons. Now the record marker is displayed for the active record as expected. Additional reference words: 3.00 VFoxWin refresh RecordMarker KBCategory: kbui kbprb KBSubcategory: FxotherGeneral |
Last Reviewed: July 28, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |