Hello, I am hoping someone can get me going in the right direction with this as I have looked through various examples and cannot locate what I think I need to do.
Problem: I have a grid that displays a couple time columns that are displaying a string representing Hours:Minutes, I need to show summary row with the totals in the same format. Of course I can't sum the string column, but I do have a HIDDEN column that has seconds stored as an Integer value. How can I use my internal function TimeStringFromSeconds to place the proper information in the visible string column using the data from the HIDDEN column and my special function?
Any help would be greatly appreciated.
Thank you so much,
Your approach worked perfectly.
Hi,
Thank you for your feedback.
Let me know if you have any issues implementing this approach. Do not hesitate to contact us if you have any additional questions.
Thank you for using Infragistics Components.
Hey Dimitar,
Thank you so much for the direction and especially the code. I had messed with the Custom Summary Stuff before but could not get it to work.
I did manage to get the example code loaded so I can have a look at it.
I will be converting it to VB, but that’s should be no big deal.
I am out of the office today and tomorrow, but will dive back into this when I get back. I will let you know how that goes when I do.
Anyway just wanted to thank you for taking the time to put together the example, as I should be able to get it working from that info. I will verify the answer or shoot you response if I have any trouble with it in a couple days.
Thank you for posting in our forums.
What you can do in your case is to use CustomSummaryCalculator interface, which gives you control over how your summary is calculated. In it just sum the seconds from the hidden column and then convert them to string using your TimeStringFromSeconds method. For more information on this interface please visit this link:
http://help.infragistics.com/Help/Doc/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v11.2~Infragistics.Win.UltraWinGrid.ICustomSummaryCalculator.html
I have attached a sample demonstrating this suggestion.
Please let me know if you have any additional questions.