Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The grid is a wonderous thing (except for this one thing
Message
De
15/04/1999 12:44:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/1999 12:30:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00208603
Message ID:
00208611
Vues:
24
>I am using a grid to get and display phone numbers and descriptions. It is based upon a filtered view to display only the numbers associated with the currently selected contact. I found that one feature of the grid is that if you click in an empty cell it fires the click event of the grid so I use this to add a record to the view and set focus on the new record. This works but has some bizarre effects.
>
>If there are no records currently displayed (the first number for a contact) it won't set focus on the cell until you click on it.
>
>I am counting the existing records to calculate the position of the new record but when adding records the grid seems confused about the display position of new records (possibly because of the negative record numbers?).
>
>The rest of the erratic behavior is variations on this theme. I don't think this is a result of a filtered view but...
>
>Any ideas would be appreciated.
>
>TIA Jeff
Try putting this into "when" :
with this
	select (.recordsource)
	if eof(.recordsource)
		append blank in (.recordsource)
	endif
	.refresh
endwith
Cetin
Ç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