Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display total of a grid column?
Message
From
17/06/2010 04:46:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to display total of a grid column?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01469381
Message ID:
01469381
Views:
115
Hi,

My grid has an "Amount" column which I want to display its total.
Currently, I use a readonly textbox to display that total right below the "Amount" column.

My concern is when user adjust the grid, say change a column size, that means the "total amount" textbox must be moved so that it always aligned to the "Amount" column.
Am I right that I will have to calculate on-the-fly to find out the left pos of the "Amount" column every time? (I mean summing up the width of all columns before the "Amount" col)

I was thinking it is possible to display the total amount as footer of the "Amount" column. Is it possible to also add a footer to a grid column (besides its header)? If so how do I add that footer?
Next
Reply
Map
View

Click here to load this message in the networking platform