Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: reload a Grid not set Highlight selected row
Message
 
 
To
18/05/2004 13:25:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00904601
Message ID:
00905045
Views:
26
Fabio,

VFP can not call SetFocus() internally either.

You have provided yourself with code that you should put in a RecordSource_Assign() method so that your grids work the way you want them to work.

>I only want that VFP respect HighlightStyle=2
>without the need to do a double dynamic cycle.
>
>VFPT can do this because with this code i can set the Highlight line
>without a refresh and without a double dynamic cycle:
>
>thisFORM.LockScreen = .T.
>WITH thisform.ActiveControl
>  grid.RecordSource = newvalue
>  grid.Setfocus
>  .SetFocus
>ENDWITH
>thisFORM.LockScreen = .F.
>
>
>Then it is not the Refresh() that set the Highlight line.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform