Folks, is it possible to have a summary on a TimeSpan column. I have created one and don't get any complaints/exceptions but it doesn't output anything.
Idea is that the column holds how long it took a task to complete and the summary would be an overall total(sum).
Thanks
Hello , I see what you mean now. The Sum in the grid and even the Sum function in the CalcManager only work with numeric values. They will not work with a TimeSpan, that’s why you see error in the summary field. The Example I have send was using the days of Time span. You can use a custom type summary with an ICustomSummaryCalculator. You need to implement this interface and implement the sum of time span in AggregateCustomSummary method.You can find more information here:http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html%5CInfragistics2.Win.UltraWinGrid.v9.2~Infragistics.Win.UltraWinGrid.ICustomSummaryCalculator.htmlI hope this helps.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Thanks for taking the time to do that but its not really getting what i need. I have a grid with a timespan column and i just want to summarize it something like....
Task
Processed
Failed
Time Taken
Job #1
1,234
6
00:00:02.5618768
Job #2
55,900
56
00:01:12.0000000
Summary
57,134
62
00:01:14.5618768
Hello , I have created small sample with a Unbound Colum calculation time Span of two other columns. And add summary to that column. I hope this sample is helping you.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.