Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleted Method in the grid control
Message
From
18/07/1997 11:52:01
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00040480
Message ID:
00040587
Views:
30
>>I have noticed that if you click on the delete marker in a grid without first clicking on a row, the parameter that is passed to the deleted method is the record number of the row that you are leaving, not the row that you are trying to flag for deletion. If you click on the row first, before the delete marker, then the correct record number gets passed.
>>
>>I am writing a browser that logs any changes that the users makes to a table. To capture a deletion, I have attached the processing code to the deleted method of the grid control. This information is then logged to a file. If the user clickes on the row first, clicks on the delete marker, it works fine. If, however, they go directly to the delete marker, the data that is recorded is from the last row that was clicked on. Any ideas?
>>


>>
>> Ed
>
>since the deleted marker isn't recognized as a column, the afterrowcolchange event wouldn't fire (grid will think it's still in same record)


Hi David:

That is what I figured. The question is then, how can I force that row to get focus in the grid.deleted method.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform