Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Grid Generation
Message
From
30/10/1997 14:47:01
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00057440
Message ID:
00057464
Views:
26
>working on a grid class which will handle "building" itself dynamically.
>(not using a builder, as i want to have it as a class)
>
>Basically, my plan is to be able to drag a table or view from the
>DataEnvironment onto a form and NEVER <s> have to touch it again.
>
>Here are my current needs:
>
> 1. For the columns' current control(s) i need to be able to place code
>into several methods of the default control (ie. the textbox). How do you
>do this? Or is it possible to have the dropping of the table/view use my
>class of textbox.
>
> 2. "Intelligently" use the correct control based upon the columns' source.
>(ie. checkbox for logical, ...)
>
>kim

this topic was covered in detail a few weeks ago... I don't remember the topic to search for but I'll give you the _extremely_ short version.
You cannot specify a default custom class for members of a grid.
What you _can_ do is write code in the init method of your grid class looping through the column and using REMOVEOBJECT and ADDOBJECT to replace all the members with your custom classes.

Let me know if you can't find the psat threads on this subject (keyword 'header' comes to mind...) or if you need more details on the implementation of this concept...
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform