Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Allan Cerrudo
  Where is Allan Cerrudo?
 Las Pinas City
 Philippines
 Allan Cerrudo
 Tags
Subject: RE: How to Link 2 grids by column...
Thread ID: 15859 Message ID: 15871 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Wednesday, October 02, 2002 6:28:13 PM         
   


> I have 2 grids (grid1 & grid2), each has different tables but has equal columns, each column in grid2 contains the total the counterpart column in grid1. Grid2 does not have a vertical scroll
> bar and horizal scrollbar. I already put a procedure in the Scrolled property in grid1 using DoScroll, making the horizontabl scroll bar in grid1 and grid2 act as one.
>
> My problems is, if i scroll horizontally grid1 not using the horizontal scroll bar (for example using the arrow key, left to right ), the column in grid2 wont move.
>
>
>
>

Hi,
I understand what you are trying to do... but have never done it !
Just a thought... in the lostfocus event of grid1.column1.text1 can you put
a setfocus to grid2.column1.text1 and then back to grid1 again.

And in the lostfocus event of grid1.column2.text1 can you put
a setfocus to grid2.column2.text1 and then back to grid1 again.

etc........

Sounds like of clunky, but I do not know unless someone else does
how to make the grid2 column match to the changes in the grid1 column.
NOT EVEN SURE IF THIS WILL WORK !

A possibly other solution would be to incorperate the data all within
one grid with column1 having what-ever and column2 having the totals...etc.
Have every second column within the grid with a different background and
foreground colour with titles of totals on the one grid.

Pete from the Great White North ! (Only in Canada, ay...) Over and Out ...


ENTIRE THREAD

How to Link 2 grids by column... Posted by Allan @ 10/2/2002 2:51:23 PM
RE: How to Link 2 grids by column... Posted by Pete Sass @ 10/2/2002 6:28:13 PM
RE: How to Link 2 grids by column... Posted by Allan @ 10/3/2002 5:34:06 AM