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

How to show the totals in GridView Footer

3 Answers 146 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lakshmi Satish Kumar Pydipati
Top achievements
Rank 1
Lakshmi Satish Kumar Pydipati asked on 08 Jan 2010, 08:11 AM
Hi

I want to show the totals in the column footers.

Please see below code 

<

 

nsc:TDataGridViewDataColumn Header="Total Cost" DataMemberBinding="{Binding TotalCost}" Width="100" DataFormatString="{}{0:c}">

 

 

 

<nsc:TDataGridViewDataColumn.AggregateFunctions>

 

 

 

<data:SumFunction Caption="Sum: " SourceField="TotalCost" FunctionName="Sum" />

 

 

 

</nsc:TDataGridViewDataColumn.AggregateFunctions>

 

/

 

nsc:TDataGridViewDataColumn>


But I am not seeing any total in the footer of the grid view.
I am assigned true for the ShowColumnFooter = true;
Can you please help me.

 

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 12 Jan 2010, 04:16 PM
Hi Lakshmi Satish Kumar Pydipati,

I have tested your XAML and everything works fine here
I see that you use TDataGridViewDataColumn which derives from GridViewDataColumn  I guess?
Please note I have tested with a regular GridViewDataColumn instead.

Have you tried this with GridViewDataColumn instead  ?

Can you also please check the type of the TotalCost field  - is it a numeric type ?

Sincerely yours,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Lakshmi Satish
Top achievements
Rank 1
answered on 13 Jan 2010, 03:30 AM
Hi

If I want to sum the TimeSpan column is it possible with your SUM Aggregate function.

Bye
Satish
0
Pavel Pavlov
Telerik team
answered on 13 Jan 2010, 01:51 PM
Hello Lakshmi Satish,

It seems you have opened more than one thread on this issue. To avoid duplication the solution has been posted    at this thread 

Greetings,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Lakshmi Satish Kumar Pydipati
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Lakshmi Satish
Top achievements
Rank 1
Share this question
or