Hey Mike - thanks so much for pointing me to your code downloads. I haven't gotten to the point of re-querying the grid - but, I WILL have to do exactly that - and at that point I will look at your code.
I'm actually having a Strange problem with this Grid now - in that it will at times crash the whole VFP application when I am testing out that Grid. But, I may have to post this in a new Thread. I'm trying some stuff out now - before I really post about this issue. But, it's a game stopper - since I can't possibly release this screen to the users if it crashes at times due to users interacting with this Grid!
So - more on this shortly...
-K-
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Tuesday, February 02, 2016 10:29 AM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Honestly....without subclassing, I think I'd hate programming. It surely would not be as enjoyable.
Check out the SaveSource and RestoreSource methods I posted in the ProFox downloads section to add to your grid subclass. Those are MUST HAVEs in my opinion so you never have to rebuild your grids after changing (requerying) the underlying cursor.
hth, --Mike
On 2016-02-02 08:58, Kurt Wendt wrote:
Hey Mike - sorry I didn't see your reply till now.
At first I was hesitant to attempt to try and implement this particular solution - because it involved classes. I first tried to see if I could do it without doing the subclassing. But, then I saw that it required adding Methods and Properties to a Grid. I had done that with Forms - but, didn't know you couldn't do it with a Grid. So
- I took at stab at how to sub-class, just a pure guess - since there
were already a couple of visual classes in the project already - and was glad to see it was so easy to sub-class.
And - they say you Can't teach an Old Dog New Tricks. Well - this Dog just learned something new!
:-) -K-
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Saturday, January 30, 2016 6:32 PM To: profoxtech@leafe.com Subject: Re: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
On 2016-01-29 17:20, Kurt Wendt wrote:
To be honest - I hadn't sub-classed before, but, I figured it out and made a Grid sub-class.
imo, subclassing is the BEST and will allow you to really love the Fox moreso. If I couldn't (or didn't) subclass, I might as well use VB. :-)
OOP is where's it at (still).
--Mike
[excessive quoting removed by server]