Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh Grid Data
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01201275
Message ID:
01201298
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform