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

How to total a Column on a Gridview that is programmaticly created

1 Answer 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Claude IMBERT
Top achievements
Rank 1
Claude IMBERT asked on 24 Oct 2007, 12:35 PM
Hello,

I would like created a footer with the total of a Column in my GridView ?

Regard's

Lione

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 24 Oct 2007, 01:38 PM
Hi Claude IMBERT,

Thank you for this question.

Currently, we only support summaries at group level. This means that your RadGridView must be grouped by some column in order to use summaries. You need to add an item to the GridViewTemplate.SummaryItems collection. There is an example on how to use summaries in our Quick Start Framework. You can also use the following code:

GridViewSummaryItem item = new GridViewSummaryItem("Price""Total: {0}", GridAggregateFunction.Sum); 
this.radGridView1.MasterGridViewTemplate.SummaryItems.Add(item); 
this.radGridView1.MasterGridViewTemplate.SummaryDisplayStyle = SummaryDisplayStyle.Bottom; 
this.radGridView1.MasterGridViewTemplate.UpdateSummaries(); 


We will add summaries at the root level in the RadGridView in our upcoming release in December.

Please contact us again, if you have any further questions. We will be glad to help you further.

All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Claude IMBERT
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or