Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid row column calculation problem
Message
From
26/04/2002 06:19:43
 
 
To
16/04/2002 16:52:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00645708
Message ID:
00649507
Views:
11
Sajjad

The best way to get row totals is to set the controlsource to give the result you want:

grid1.column7.controlsource = mytable.quantity*mytable.price

You will find that working directly with data (mytable.quantity*mytable.price) is more predictable than properties of objects (column5.text1.value*column6.text1.value) when you are using grids.

If you want column totals too, then try using a SQL query against the data source because it will give you results without moving the record pointer and therefore scrolling the grid.
Previous
Reply
Map
View

Click here to load this message in the networking platform