Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid refresh problem
Message
De
09/11/1999 10:10:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00288966
Message ID:
00289004
Vues:
29
Thanks for the input Mark. One question...what triggers the deleted event in th e grid? Does the user have to physically delete the record using the delete mark? I'm trying to to do some additional coding within the click event of a delete button to decrement counters, etc.

Thanks again,
Barry

>>Hello,
>>I have a grid that the user can add, edit or delete records from/to. Everything works fine and redisplays fine - except the Delete function. I can see the delete mark after the delete operation, and even though I do a thisform.grid2.refresh, the grid redisplays the deleted record with the delete mark. I have Set Deleted ON. I really want this record to disappear so the user won't be confused.
>>
>>Anybody have any clue as to what's happening? I'm running VFP 6.0, SP 3 in an NT 4.0 SP5 environment. Thanks in adavance for your response.
>>
>>Barry
>
>I use the following code in the Deleted method of my grids:
>LPARAMETERS nRecNo
>local lcRecordSource, lnSelect
>lcRecordSource = This.RecordSource
>lnSelect = select()
>select (lcRecordSource)
>if This.RecordSourceType < 2
>	goto record nRecNo
>	delete next 1
>	skip -1
>	if bof()
>		locate
>	endif
>	This.Refresh()
>endif
>NoDefault
>select (lnSelect)
>Return
If at first you don't succeed......SET STEP ON!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform