Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus to the first row and col in a grid
Message
De
31/12/2007 09:01:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01278585
Message ID:
01278596
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>How to set the focus to the first column and the first row in a grid. I don't know when the user is clicking Save, so I need to go to the first record and set focus to the first visible column (not column no.). This is in a class so I cannot predict column names.


This will return the column with a given columnorder. I'm not sure that there is a 1st column at all times, but you can get the min() of the .columnorder and then ActivateCell(). This should get you started.
lparameters  nIndex
for each oCol in this.Columns
	if oCol.columnorder=nIndex
		return oCol
	endif
endfor
return null

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform