Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » DoSum(), DoAvg(), etc... and search operations
Re: DoSum(), DoAvg(), etc... and search operations [message #23390 is a reply to message #23388] Thu, 15 October 2009 23:15 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Also, on the DoMin() and DoMax() type functions, can this be added to GridCtrl.cpp around line 4627 (SyncSummary function)? It allows the DoMin() and DoMax() summary options to work on Dates.

					else if (IsDateTime(v))
					{
						switch(sop)
						{
							case SOP_MIN:
								if (((Date) v) < ((Date) t))
									t = v;
								break;
							case SOP_MAX:
								if (((Date) v) > ((Date) t))
									t = v;
								break;
							case SOP_SUM:
							case SOP_AVG:
								t = v;
								break;
						}
					}


Jeremy

[Updated on: Thu, 15 October 2009 23:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl: Adding column dynamically – How to make editable
Next Topic: Doing my own thing with the ADD button on GridCtrl?
Goto Forum:
  


Current Time: Sat Jul 05 10:48:45 CEST 2025

Total time taken to generate the page: 0.03747 seconds