Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5 Grid Not Refreshing
Message
De
13/12/2001 12:48:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00592329
Message ID:
00593935
Vues:
32
I hope this works :
with thisformset.FCompany.Egridsrpricat
  lnRows = floor((.height - .headerheight - sysmetric(8))/.rowheight)
  for ix=1 to lnRows
    .DoScroll(0)
  endfor
  .Setfocus()
endwith
Cetin

>Cetin,
>
>The scenario is the grid is 4 rows and there are 4 rows in the table.
>The grid currently displays rows 1-4. I click on the last row in the grid and then click on a command button somewhere else on the same form. This button invokes another form in the formset where the user edits the one row. The 'OK' button on the 2nd form does the code below. When the grid is redisplayed the only row visible is the 4th row which is at the top of the grid as if it is the only row and manual scrolling is necessary to see rows 1-3.
>If more or less rows are in the table or another row is selected for editing the code below displays the rows correctly.
>TIA.
>
>thisform.VISIBLE=.F.
>thisformset.FCompany.Egridsrpricat.doscroll(2)
>thisformset.FCompany.Egridsrpricat.doscroll(3)
>thisformset.FCompany.Egridsrpricat.setfocus()
>thisformset.FCompany.refresh()
>thisformset.FCompany.visible = .T.
Ç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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform