Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting records in grids
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00180650
Message ID:
00180923
Views:
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...
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform