Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Click Event wont work on grid
Message
De
24/05/2001 04:45:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/05/2001 17:04:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510474
Message ID:
00510741
Vues:
12
>In the init method of my form i do the following
>
>=.addobject('ogrid1','gridorders')
>=.ogrid1.grid1.refresh() &&in the refresh() method I set recordsourcetype
> and header names etc
>thisform.ogrid1.visible = .t.
>
>Ronnie

Recordsource setting in refresh ? I would suggest to move it somewhere else like a custom SetRecordSource method.
Second if you need to set header names there :
-Does grid has no columns initially ?
-Or it has and you're changing them is original RecordSource is there ? If not grid would automatically redo its column objects binding to current alias destroying your added custom textboxes. Better you do add your custom textboxes on the fly.

Check Message #487530 for some sample code changing grid on the fly with your custom header, textbox, column code.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform