This is a migrated thread and some comments may be shown as answers.

RadGridView Summary Formating

2 Answers 280 Views
GridView
This is a migrated thread and some comments may be shown as answers.
elvis
Top achievements
Rank 1
elvis asked on 03 Nov 2008, 12:06 PM
Hi
    I have 2 issues related to radgridview summary
1- How can I change the style of  SummaryRowsBottom (eg. text alignment , backColor,ForColor etc.)
2- How can I show Grandtotal , 
    When i using  something like :

dim si  as  
New GridViewSummaryItem("Col", "{0}", GridAggregateFunction.Sum)
sr.Add(si)
si =
New GridViewSummaryItem("Col2", "{0}"
, GridAggregateFunction.First)
sr.Add(si)
RadGridView1.MasterGridViewTemplate.SummaryRowsBottom.Add(sr)

it's working fine either as subtotal ( for each group ) Or for all as grandtotal  if there is no group ,

But what about if I want Both !! ( SubTotal for each group and Sum for all In the Last row of grid)


Thank You in Advance

 

2 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 07 Nov 2008, 02:00 PM
Hi elvis,

Thank you for your questions.

1) Please use the CellFormatting event. There is an example in our demo application - RadGridView -->Group  Summaries. Use e.CellElement.ColumnIndex to obtain the column index.

2) We currently do not support Grand Total for the Sub Totals, but it is an interesting feature that we can consider adding to our RadGridView in one of our future releases.

Do not hesitate to write me back if you have further questions.

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin
Top achievements
Rank 2
answered on 22 Nov 2008, 02:07 PM
I agree - a Grand Total feature would be very useful!  Thanks!

--Kdc
Tags
GridView
Asked by
elvis
Top achievements
Rank 1
Answers by
Nick
Telerik team
Kevin
Top achievements
Rank 2
Share this question
or