Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Giving code to a grid column at runtime.
Message
From
05/08/1999 10:19:21
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250099
Message ID:
00250150
Views:
21
Hi Ed,

>Since you really can't add code directly at runtime, the best approach would be to create a subclass of the Column and header classses that contain the necessary Click() method code, and then programatically add instances of the Column subclass to the grid or a subclass of the grid.

Just to add something: It is common a common design method to create SubClasses Header and Column (ect.) objects using DEFINE CLASS, and the code for say the clicked event of a header looks like:
This.Parent.Parent.HeaderClicked(this)
And then put all the code directly into the grid class. This will reduce the number of Code Based classes to say 1 of each baseclass.
Previous
Reply
Map
View

Click here to load this message in the networking platform