Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid change position after Refresh
Message
From
15/01/1999 15:12:45
 
 
To
15/01/1999 15:08:21
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00176580
Message ID:
00176651
Views:
25
>Thanks for replied Edward,
>I don't quite understand about what you mean by rewrite,
>But this is what I actually did,
>Grid.Init
>Create cursor mycursor (myfield1 C(100),myfield2 C(100))
>WITH this
>.RecordSource='mycursor'
>.RecordSourceType=1
>Endwith
>
>Listbox. interactivechange
>SELECT mycursor
>ZAP
>
>SELECT * from mytable into array myarray
>IF _TALLY<>0
>insert into mycursor from array myarray
>endif
>this.parent.mygrid.refresh()
>
>
>Then, the grid change it's position, it's still at the same position if I look at debugger window, but it change on screen, and what "messy" is the grid shape after refresh is overlapping by the grid before refresh.

You code looks Ok. I would just add around this.parent.mygrid.refresh():
select mycursor
go top
thisform.lockscreen=.t.
this.parent.mygrid.refresh()
this.parent.mygrid.setfocus
thisform.lockscreen=.f.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform