Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make mygrid contain mytextbox?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00152433
Message ID:
00152873
Views:
25
Ken,

If you allow the grid to build itself at runtime, it will use VFP baseclasses, there is no other way. What you can do is in the Grid.Init() use a loop and remove each text1 and put your own in it's place. That code I posted works just as well at runtime as it does at design time.

>Yeah, but this is a two-edge sword. Once you put the grid on a form you can *add* colums to it, but you cannot remove the columns that were created by the "class"...
>
>Now then, *changing* the textbox to mytextbox is easy enough to do manually...provided you don't have a grid with 1,234,693 columns ;)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform