Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete mark w/o delete
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00052659
Message ID:
00056735
Views:
32
>>>>>>I want to be able to show the delete mark in a grid so the user can see which records are deleted and which ones are not. But I do not want the user to be able to delete records (basically have a read-only delete mark). Is there anyway I can do this?
>>>>>
>>>>>You can still use DeleteMark=.F., but add one more column with appropriate control (checkbox?) indicating Deleted status of record.
>>>>
>>>>
>>>>Thanks for your quick reply. This will work but I think it will take alot of work because of one requirement. I only want to show the delete mark when SET DELETED is OFF, so I have to set it at run-time. I suppose I could create the column at run-time. Any other thoughts would be appreciated.
>>>>
>>>>GeneS
>>>
>>>A lot of work? You create the column in design-time (if you don't like to do it programmatically), and just reset Column.Width from 0 (set deleted on) to something (set deleted off).
>>
>>Is there a way to do this in my base grid, so that it would be generic enough to work in every grid of my application?
>>GeneS
>
>Base grid is not yours, it's MS property. However, you can do it for your grid class, if you have one.


Try this (a little less work?):

DeleteMark = .T.
SET DELETED OFF
In the Grid Deleted():
NODEFAULT

The user won't be able to access the deletion mark but it will display properly

Dan
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Previous
Reply
Map
View

Click here to load this message in the networking platform