Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Click Event wont work on grid
Message
De
23/05/2001 16:50:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/05/2001 16:40:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510474
Message ID:
00510609
Vues:
15
>thanks,
>I can get to the code in the container object fine but in run time
>when the grid object is added to my form and I try and double click on
>a cell it will not perform code in the 'text1' control.
>When I previous set up the form i just added a grid to it but now
>i want to use this grid in other forms so I just made it a container object
>and just use addobject() to place on my different forms. It used to
>work fine.
>
>In the grid.column1.header1.text1 i have in the dblclick method
>
>loform = createobject('frmnewform')
>loform.show(1)
>
>This code will never even hit..I have tested by setting step on and
>it will not even load debug.
Ronnie,
How do you setup grid after addobject ? If columns are reset (ie: columncount = -1) then grid would be recreated with baseclass text1 controls. To prevent before assigning recordsource set it to empty. ie:
with thisform.myGrid
 .Recordsource = ''
* Do any changes to cursor here
 .Recordsource = 'myTable'
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform