Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Display
Message
De
07/07/1999 18:05:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00238571
Message ID:
00238577
Vues:
13
>I have a read only grid based on a table. I have an "Order By" listbox which sets the order of the table based on the users selection. Next to the listbox is a 'Seek' text box.
>
>In the Interactive change event of txtSeek I have:
>
>SELECT HARDWARE
>SEEK ALLTRIM(this.Value)
>ThisForm.Grid1.Refresh()
>
>The problem is, the found row is displayed in the middle of the grid. Is there anyway to have this row become the first row of the grid?
>
>TIA.
>
>Rob

Something like this:
WITH thisform.grid1
 .setfocus
 nCounter=0
 DO while .relativerow<>1
  nCounter=nCounter+1
  .doscroll(1)
  IF nCounter>10
   EXIT
  ENDIF
 ENDDO
ENDWITH
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform