Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ciprian Zaharia
  Where is Ciprian Zaharia?
 Brossard
 Canada
 Ciprian Zaharia
 To: Daniel Hofford
  Where is Daniel Hofford?
 Ocala
 Florida - United States
 Daniel Hofford
 Tags
Subject: RE: Grids & Data Sources
Thread ID: 189401 Message ID: 189423 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Thursday, August 14, 2008 9:47:19 PM         
   


> Hello all,
>
> In the solutions samples they have a grid that shows a column(s) being updated when data is changed in another column.
> Exactly what I want to do but I can't find where to put the code. Hell, I can't even find it in the sample they
> provide.
> Can anyone tell me where the code goes?
>
> I put in the controls source of the column where data will be entered the following:
>
t_out=t_in+hours*3600+min*60

> I want the result to show up in another column of the grid as well as in the table the
> grid is tied to.
>
> How do I fire it.
>
>
> After sending this I found the location - duh. Its in the valid method of the text in the column.
> Sorry
>
>
> Dan
> "Our gold does not chink and glitter. It gleams in the sun and neighs in the dark." Chief Joseph

In that example the calculated columns are based on fields of a table(product I think) so everytime you change the value of a field in table the calculated value is changing. In this case the grid is acting like a browse so everytime you change a value in grid and press enter the new value is saved in the table without any other code

Ciprian Zaharia
Fox4Ever
http://genn.org/stuff/tastes/

ENTIRE THREAD

Grids & Data Sources Posted by Daniel Hofford @ 8/14/2008 7:24:44 PM
RE: Grids & Data Sources Posted by Yuri Rubinov @ 8/14/2008 7:49:13 PM
RE: Grids & Data Sources Posted by Daniel Hofford @ 8/14/2008 7:52:12 PM
RE: Grids & Data Sources Posted by Ciprian Zaharia @ 8/14/2008 9:47:19 PM