Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column click
Message
From
14/11/2012 04:52:09
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
14/11/2012 03:46:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01557111
Message ID:
01557123
Views:
61
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi All,
>>>
>>>I have a form with a grid. I am programmatically adding columns to the grid using AddObject(). Is there a way to also add some custom code to the header click event of the column I am adding in this way?
>>
>>Bindevent.
>
>Thanks Tore. I can see how to do it but am concerned about this - the user may create many copies of the form I am building, each form's grid can have many columns, each column of each grid on each form would require a bindevent. I am not sure thats a good idea ?

Bindevent is actually very lightweight - it's just an entry in some internal table somewhere - and it's only telling Fox when to run some code. While I don't have much of multiple instances of the same form, I got lots of bindevents on grid headers, grids, and in some cases, at least two or three on each of some 200 controls spread across a 8-page pageframe within the last page of a 9 page pageframe, and it just works and doesn't complain.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform