Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click Grid control header to sorting the data in column
Message
 
À
06/10/2002 18:04:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00708196
Message ID:
00709849
Vues:
24
Hi Marcia,
I had try out the coding but the data in the grid still no change after click the different of grid header with particular order. I had try to add in below code to let the grid repaint.

Header's Click method:

WITH This.Parent
IF PEMSTATUS( .Parent, 'SetOrder', 5 )
.Parent.SetOrder( JUSTEXT( .ControlSource ) )
.refresh && add in by Vincent
ENDIF
ENDWITH

But no effect!

If I want to click the grid header first time the order will be ascending order and click second time the order will be descending order. Can I write the code like this:

lnClick is public variable

IF lnClick = 1 THEN
SET ORDER TO ( tcTag ) ASCENDING
lnClick = 2
ELSE
SET ORDER TO ( tcTag ) DESCENDING
lnClick = 1
ENDIF

Pls help me again. Thank you very much.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform