Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on AfterRowColChange
Message
 
 
À
29/07/1999 11:09:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00247689
Message ID:
00247725
Vues:
23
>i want to write code in grid's afterrowcolchange. but it should only run if row has changed.
>it should not run if column has changed in same row.
>
>so is there any way by which I can know in afterrowcolchange that row has changed
>
>Thanks in Advance for your help.
>
>Mark

In my grid sublass, I have a property called OldActiveRow and method called GridRowChange. It has the following code as well:
*BeforeRowColChange
LPARAMETERS nColIndex
if !empty(This.RecordSource) and reccount(This.RecordSource) > 0
   This.OldActiveRow = RecNo(This.RecordSource)
endif

*AfterRowColChange
LPARAMETERS nColIndex
if !empty(This.RecordSource)
   if This.OldActiveRow <> RecNo(This.RecordSource)
      This.GridRowChange()
      ThisForm.Refresh()
   endif
endif
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform