Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Header problem
Message
De
25/07/2011 22:11:29
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid Header problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01519130
Message ID:
01519130
Vues:
80
Hi,

I have a grid on a form and set the column header to BOLD, the caption is Customer Code, Customer Name.
I have some code in click event on the column header, but after run the select statement, it reset all the setting of the grid,
the header change to the cursor field name, not bold, the header click event reset to none.

why ?

the code as follow:-
SELECT cusmas->cusno,cusmas->cusname FROM cusmas  INTO CURSOR cusmas_srh ORDER BY cusmas->cusno
SELECT cusmas_srh
GO top
thisform.grdClient.RecordSource="cusmas_srh"
thisform.grdClient.Refresh()
thisform.grdClient.COLUMN1.SetFocus() 
Please advise.
Thank
Derek
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform