Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh Grid Data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01201275
Message ID:
01201298
Vues:
25
>Hi All:
>
>I've a Grid that have data of a Cursor, but when I modify the data of the cursor, por example, delete or insert one register or varius, the grid not refresh the data. I've tried with grid's property refresh, but not operate...
>
>I've use the code following for refresh the data:
>
>         SELECT C_Listado
>	nRecno= RECNO()
>	DELETE ALL FOR Cliente = M.Cliente
>	GO TOP
>	SELECT C_Listado
>	GO nRecno
>	&&	
>	SELECT C_ClientesA
>	nRecno= RECNO()
>	GO TOP
>	IF !EOF()
>		.lallowremove = .T.
>	ENDIF
>	SELECT C_ClientesA
>	GO nRecno
>	.Refresh
>	&&
>	.GrdLista.SetFocus
>	.GrdLista.Refresh
>	&&
>	.GrdClientes.SetFocus
>	.GrdClientes.Refresh
>
>I need to Know,one way for simplify my code, Do you can help me?
>
>Thanks...

I found, that all is needed is to set focus to the grid. Nothing else is needed.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform