Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records in grids
Message
 
 
À
27/01/1999 12:33:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00180650
Message ID:
00180923
Vues:
20
>>>>Hello All,
>>>>I need to prevent users from clicking in the deleted column of a grid, any ideas?
>>>>Regards
>>>>Pete Kane
>>>
>>>Hi Pete,
>>>
>>>If it helps, you can turn off the delete mark column altogether:
>>>
>>>loGrid.DeleteMark = .f.
>>
>>Mark,
>>thanks, I knew about the deletemark ( no pun intended ) but didn't realise it prevented the deletion
>>Thanks again
>>
>>Pete Kane
>
>You can also put a NODEFAULT in the Deleted Method of the grid. OK, that's 2 ways, who's got the third method? :)

I know of no other method other than making the record source of the grid read-only. Making the grid read-only still allows deletions, but if you make the cursor or table read only, deletes are not excepted in the grid. A fairly drastic measure...
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform