I need the ability to mark the record for deletion, plus change when the delete button is enabled. I have no problem enabling/disabling the button based on the editing state but I can't seem to find a way to mark the record for deletion and use the save to commit the changes. Is there a way to do this without creating a new button and handling the delete separately?
Thanks,
Tim
from the help file:
''' ''' This sample shows how to mark the current row as deleted''' in a business object.''' ''' Private Sub DeleteCurrentRowSample() '-- Mark the current row as deleted Customers.DeleteCurrentRow(True) '-- At this point the record has only been marked as deleted. ' The CurrentRow will be moved to the next record that is not ' deleted unless the ShowDeletedRecords property is turned ' on within the business object. Now save the changes to the ' server. Customers.Save()End Sub
The important part is: 'DeleteCurrentRow(true)'
HTH,
Ralph
At present the MaintenanceFormToolstrip does not have that ability. You could always hide the Delete button and then create your own in this scenario. But this is probably a good one for the enhancement list.