Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the Textbox in a Grid Control
Message
From
18/07/2002 13:28:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Change the Textbox in a Grid Control
Miscellaneous
Thread ID:
00680069
Message ID:
00680069
Views:
51
Hello !

I need to change the text box in my grid at run-time using code...
I'm using this lines and the grid looks fine, but when I click in a column that had its textbox replaced, the textbox loses its value... TAB key doesn't set the focus to it and no edit is permited...
What's wrong?
Here are the lines:

This.grid.Column1.RemoveObject('Text1')
This.grid.Column1.AddObject('Text1','MeuText')
This.grid.Column1.currentControl = "Text1"
This.grid.Column1.ControlSource = "mytable.myfield"
Juliano Martins Terterola
Microsoft Certified Professional
Porto Alegre - RS - Brazil
9 years of Visual FoxPro experience

"Though we know that time has wings
We're the ones who have to fly..."
Neil Peart - Rush
Next
Reply
Map
View

Click here to load this message in the networking platform