Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding control to grid at runtime
Message
From
28/03/2005 16:48:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Adding control to grid at runtime
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00999545
Message ID:
00999545
Views:
54
I am trying to fill a grid's properties at run-time (since the record source has to change). I am loading the grid column properties in to a form array property, but am having trouble when I try to add a new editbox in to a column. I need to have the scroll bars in the edit box. This is the code:
thisform.Pageframe1.Page2.grdList.recordsource='mgmtst'  
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].Addobject('edtDescr','vcgridedit')
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].Currentcontrol='edtDescr'
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].controlsource='descr'
When I run the form, this column does not show any data. It is just grey. I've turned sparse on / off with the same result.

any ideas?

thanks

bonnie
Next
Reply
Map
View

Click here to load this message in the networking platform