Microsoft KB Archive/132354

= PRB: Grid ActiveRow Mark Is Not Visible After Refreshing Grid =

Article ID: 132354

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q132354



SYMPTOMS
When 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.



RESOLUTION
See the example resolution given in the "More Information" section of this article.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  In the Command window, run these commands: USE SYS(2004)+"samples\data\customer" CREATE FORM test  Add a grid to the form. Add the VCR class from \VFP\Samples\Controls\BUTTONS.VCX. Save and run the form. Click the various VCR buttons.</ol>

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 Resolution
To correct this behavior, modify the VCR button code as follows:

<ol>  In the Command window, issue this command: MODIFY FORM test </li> Double-click the VCR buttons.</li>  Select the cmdTop.Click event, and type these commands: =EVALUATE((this.parent.class)+".cmdTop::Click") THISFORM.GRID1.SetFocus </li>  Select the cmdPrior.Click event, and type these commands: =EVALUATE((this.parent.class)+".cmdPrior::Click") THISFORM.GRID1.SetFocus </li>  Select the cmdNext.Click event, and type these commands: =EVALUATE((this.parent.class)+".cmdNext::Click") THISFORM.GRID1.SetFocus </li>  Select the cmdBottom.Click event, and type these commands: =EVALUATE((this.parent.class)+".cmdBottom::Click") THISFORM.GRID1.SetFocus </li> Save and run the form.</li> Click the various VCR buttons.</li></ol>

Now the record marker is displayed for the active record as expected.

Additional query words: VFoxWin refresh RecordMarker

Keywords: KB132354

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.