Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click event not firing
Message
From
03/09/2009 20:46:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01422519
Message ID:
01422551
Views:
40
>>>>>
>>>>>Are you sure it's not the grid reconstruction problem?
>>>>
>>>>I'm not sure of anything at this point. Unfortunately, what I'm most not sure of is what to look for!
>>>
>>>Do you re-assign RecourdSource of the grid at some point? This causes the grid reconstruction problem.
>>
>>Yes, I do.
>>
>>Each time I refresh the grid I set the recordsource and then assign columnCount, columnN.controlSource, and columnN.Header1.Caption.
>>
>>Safe Select techniques (at least the one's I'm aware of) won't work because the structure of the data changes each time.
>>
>>If there are no properties I could control, I could probably remove and add the grid. I'll try that and see it it works. If you can think of something better!!!!!!!!!!
>
>Can you bind header's click after each re-assign? Unbind before re-assign and then bind.

Same problem. First time it runs properly (bound code runs). After that the code doesn't fire.

I tried RemoveObject and NewObject and it worked just fine.

I still don't know why the original version wouldn't function "properly" but I've got something that works without a visible slowdown in the program so it's on to the next task on the list.

Thanks for your help...........Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform