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
DoSum(), DoAvg(), etc... and search operations [message #23382] Thu, 15 October 2009 17:13 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Hello,

I use to define WhenUpdateSummary and did my own suming but when searching to fix my problem I found DoSum(), DoAvg(), etc... I now use that, much easier!

Anyway, my root problem/desire is to change the summary when the person begins to search. I noticed that when I had my own WhenUpdateSummary defined, that it was called each time the search was revised, which is good but I could not figure out how to tell if a given row was displayed in the search results or hidden from the search results.

I then found DoSum() and friends hoping that it would handle it interally but it does not seem to pay attention to the items displayed status either.

So, my question is, how can I make the summary display only what is shown not other items that are hidden due to a search. Now, the idea is also that if there is no active search than the whole grid would be summed of course. I'd like to be able to do this with the build in DoSum and friend functions but will use a WithUpdateSummary event function if necessary.

Thanks,

Jeremy
 
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: Fri Jul 04 00:15:12 CEST 2025

Total time taken to generate the page: 0.04082 seconds