Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid behavior only works once ???
Message
De
30/12/2004 09:03:37
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid behavior only works once ???
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Divers
Thread ID:
00973249
Message ID:
00973249
Vues:
77
Hello everybody !

I have a problem with grid behavior:

Form1 calls form2
form2 returns a value to form1

form2 is a search form
the user fills some search fields
the result is shown in a grid
thisform.grid1.recordsource = " "
l_sqlcmd ="select... from .. where ...."
sqlexec(conn,l_sqlcmd,(thisform.l_cursor)
thisform.grid1.recordsource = (thisform.l_cursor)

when doubleclicking on a textbox in the grid the form2 is released and a value
from the aktiv row is returned to form1 at the unload event of form2

grid1 is a class from a classlib which is manipulated at init of form2
(columncount,header.captions,column.width .....)
the class has some events that should always work (clicking on header = sorting, doubleclick on all textboxes in any column = thisform.release

everything works well but only once ???????!!!!!

form1 click on search button
form2 is opend
user fills in some search values
result is shown in grid1 of form2
clicking on a column header does the sort
doubleclick on a textbox in a row releases form2 and returns the value to form1

form1 click on search button again
form2 is opend
user fills in some search values
result is shown in grid1 of form2
doubleclick on a textbox of grid1 does nothing ??????
clicking on a column header doesn't sort ????

seems that all the events of the column objekts do not work
or the grid uses standard textboxes,headers

after rowcolchange event and highlight allways work


any help welcomed
best regards
albert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform