Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 grids
Message
From
27/05/2005 09:10:34
 
 
To
27/05/2005 08:18:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018071
Message ID:
01018092
Views:
11
I suppose the two grid's recorsource have the same structure. If so you could place a commandbutton on the first grid and manage its click event like this

lcFirstGridAlias = thisform.grid1.recordsource
select (lcFirstGridAlias)
scatter memvar

*now swap the values formn i04 and i05
m.io5 = m.io4
m.io4 = &lcFirstGridAlias.io5

insert into (thisform.grid2.recordsource) from memvar

thisform.grid2.refresh()

>hi all,
>
>i have 2 grids at myform,
>
>i can choise items form grid2 to insert it into grid1 as under
>

>grid2
>------
>io1
>io2
>io3
>io4
>io5
>io6
>
>ex..
>i insert into grid1 from grid2
>grid1
>----
>io1
>io3
>io5 && i need to replce io5 with io4 from grid2 ,same position
>io6
>io2
>
>

>
>thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform