asi debes redibujar para que no aparezca en blanco después de
cargar nuevos datos .
1º
If Found()
Set Filter to factura=fac
Thisform.Command1.Enabled=.f.
Thisform.Pageframe1.Page1.Text3.Enabled=.f.
*------------------------------------------------------------------------
Thisform.Pageframe1.Page1.Text1.Value=rut
Thisform.Pageframe1.Page1.Label8.Caption=nom
Thisform.Pageframe1.Page1.Text4.Value=fec
*------------------------------------------------------------
Thisform.Pageframe1.Page1.Grid1.AllowAddNew=.t.
Thisform.Pageframe1.Page1.Grid1.ColumnCount=4
Thisform.Pageframe1.Page1.Grid1.RecordSource=" "
*------------------------------------------------------------------------------
Thisform.Pageframe1.Page1.Grid1.Column1.Header1.Caption="Cant."
Thisform.Pageframe1.Page1.Grid1.Column1.ControlSource="facturar.cantidad"
Thisform.Pageframe1.Page1.Grid1.Column1.InputMask="9999999.9"
*----------------------------------------------------------------------------
Thisform.Pageframe1.Page1.Grid1.Column2.Header1.Caption=" Descripción"
Thisform.Pageframe1.Page1.Grid1.Column2.ControlSource="facturar.descripcio"
Thisform.Pageframe1.Page1.Grid1.Column2.Format="@!"
*------------------------------------------------------------------------------
Thisform.Pageframe1.Page1.Grid1.Column3.Header1.Caption="Pre.Unit."
Thisform.Pageframe1.Page1.Grid1.Column3.ControlSource="facturar.preciovent"
Thisform.Pageframe1.Page1.Grid1.Column3.InputMask="99,999,999"
*------------------------------------------------------------------------
Thisform.Pageframe1.Page1.Grid1.Column4.Header1.Caption="Total"
Thisform.Pageframe1.Page1.Grid1.Column4.ControlSource="facturar.neto"
Thisform.Pageframe1.Page1.Grid1.Column4.InputMask="99,999,999"
Thisform.Pageframe1.Page1.Grid1.Refresh
Endif
2º si es un cursor sql
** aquí ya está creado el cursor ***
sele temporal
Thisform.Pageframe1.Page1.Grid1.AllowAddNew=.t.
Thisform.Pageframe1.Page1.Grid1.ColumnCount=4
Thisform.Pageframe1.Page1.Grid1.RecordSource="Temporal "
Thisform.Pageframe1.Page1.Grid1.Column1.Header1.Caption="Cant."
Thisform.Pageframe1.Page1.Grid1.Column1.ControlSource="Temporal.cantidad"
Thisform.Pageframe1.Page1.Grid1.Column1.InputMask="9999999.9"
Etc ..