Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - replace the textbox programmatically
Message
From
26/12/2006 06:56:13
 
 
To
26/12/2006 06:37:27
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01180164
Message ID:
01180167
Views:
27
This message has been marked as the solution to the initial question of the thread.
does anybody know how to replace the textbox in a column of a grid programmatically at runtime?

Try this in the init() of the grid:
FOR EACH loColumn IN This.Columns FOXOBJECT
  loColumn.AddObject( [MyText], [MyCustomTextBoxClass] )
  loColumn.CurrentControl = [MyText]
  loColumn.MyText.Visible = .T.
  loColumn.RemoveObject( [Text1] )
ENDFOR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform