Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you add code in gotfocus for dynamic built grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01409625
Message ID:
01409627
Vues:
71
You can use BINDVENT()

>How do I add code for a column in a grid that was built dynamically using code? Here is my grid being built:
>
>
>lc_id = thisform.a && institution id
>			REQUERY('lv_comsume_orders')
>			INSERT INTO crs_grid2 (crsird, crspid, crsiid, crsaccptamt, crsonroute, crsirorderno, crsiravailconsump, ;
>				crsprod, crsitemcode) SELECT ir_id, ir_prodid, ir_inst_id, ir_actordaccepted, ir_onroute, ir_orderno, ;
>					ir_avail_consump, p_productname, p_itemcode from lv_comsume_orders
>
>				.g1.RecordSource="crs_grid2"
>				.g1.RecordSourceType = 1
>				.g1.ColumnCount=6
>				.g1.readonly = .f.		
>				.g1.LockColumns = 4		
>				.g1.Refresh()
>				WITH .g1	
>					.HeaderHeight = 30		&&*thisform.g1.Columns.header.wordwrap = .t.
>					.SetAll('WordWrap',.t.)   &&thisform.g1.Column.Header.WordWrap = .T.
>					.column1.header1.caption = "Order#"
>					.column1.header1.ToolTipText = 'The order number'		
>					.column1.width = 50
>					.column1.Enabled = .F.
>					.column1.Text1.DisabledBackColor 	= RGB(255,255,255)
>					.column1.Text1.DisabledForeColor = RGB(0,0,0)
>					.column1.ControlSource = "crs_grid2.crsirorderno"
>..
>...
>
>
>
>How would I enter code for lets say .g1.column1.text1.gotfocus event for a grid that is being build dynamically?
>
>thanks
>Nick
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform