Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling row order in a Grid
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00113876
Message ID:
00113886
Vues:
26
>I have a Grid in a form that allows users to add rows. To add a new row, my code fires an append blank. Unfortunately, all new records appear at the bottom of the grid and not index order. Is there a way to reorder the Grid on the fly?

Hi Andy,

Provided the recordsource of the grid that you are appending a record to is ordered, after the append and update of the data, try refreshing the grid by calling its Refresh() method. I think might order the records properly. The problem might lie in the APPEND. I'd look at using INSERT-SQL, as it will definately insert the record into the correct order placement.

Phil
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform