Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records in grids
Message
De
27/01/1999 13:45:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00180650
Message ID:
00180927
Vues:
19
>>>>>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...

Yes, that is a bit of a problem. I'm not sure why ReadOnly doesn't prevent deleting a record, since it DOES write back to the table. We'll give your making the table read only a 1/2 a point, since it has other limiting factors. :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform