Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addobject in grid column at runtime : Readonly always .T
Message
 
To
11/11/2003 11:55:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00848757
Message ID:
00848847
Views:
21
Hi Nancy,

Thanks for your reply! I never taught of adding the Grid dynamically too since there was some code in there. I guess it could be a good time to use the BINDEVENT <s>

However, there is still a bug. The following code works fine
*Form::Init() Event
CREATE CURSOR temp (l1 L)
APPEND BLANK 
This.AddObject("Grid1","Grid")
This.Grid1.COLUMNCOUNT = 1
This.grid1.recordsourcetype = 1
This.grid1.recordsource = "temp"
WITH This.Grid1.Columns(1)
	.ADDOBJECT("check1","CheckBox")
	.CURRENTCONTROL = "Check1"
ENDWITH
This.Grid1.Visible = .T.
but if I remove the This.AddObject("Grid1","Grid") line and instead drop a grid on the form, This.Grid1.Columns(1).Check1.ReadOnly is always .T. even if the column.Readonly property is .F.

Thanks again for the workaround!

Regards,
Sylvain Bujold
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform