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 06:37:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01469381
Message ID:
01469388
Views:
44
>Check File #31413
>
>>
>>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?

Ha! At least now I know it is not a simple thing (that I have missed) to have column footer in grid.

Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform