Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Addobject in grid column at runtime : Readonly always .T
Message
 
À
11/11/2003 11:55:07
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00848757
Message ID:
00848847
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform