ryan
Posts: 41
|
| Posted: 08/08/2006, 12:25 AM |
|
I want a grid total that appears on the FINAL page but I cannot properly tweak the code.
for example this total
- - - - - - - - - - - - - - - - - - - - - -
Total--------300
- - - - - - - - - - - - - - - - - - - - - -
will only appear on the final page , I do not want something that sums the values then puts a running total on every page but rather displays the TOTAL on the final page
If I have 50 records per page then page 1 of 4 I want the total to appear on page 4
If I have 20 records per page then page 1 of 12 I want the total to appear on page 12
If I have n records per page then page 1 of x I want the total to appear on page x
All I can think of are the ff:
A = MyGridName.DataSource.AbsolutePage
B = CCGetParam("TheURLforPageNumber","-1")
IF (A<>B) THEN
TotalGrid.Visible=false
ELSE
TotalGrid.Visible=true
END IF
But I cannot find any luck hehehehelp please :)
_________________
(\__/)
(='.'=)
(")_(") |
 |
 |
|