Delete with a grid and the BusinessBindingSource


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Is there any way to disable the delete button until the edit button has been pushed or otherwise require that user hit save before any deletions are actually performed? 

Manage this yourself.  Handle the EditingState event to determine your state and control the enabled status of the button.

Is that something you've seen before or have any idea how to work around?

Set the AutoShowDeleteConfirmation property on the form to False.

fparker
fparker
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 31, Visits: 199
I have two questions related to performing deletions on a StrataFrame maintenance form with a ComponentOne grid on it which is bound to a business object through an instance of the BusinessBindingSource class

I have set the toolstrip's AllowMultipleModifiedRecords property to true and set the business object (with is the only one on the form) to be included in the form's delete.  If the user hits the edit button and then the delete button, the current record is marked for deletion but not deleted until the user hits the save button.  If, however, the user hits the delete button before hitting the edit button then the current record is deleted at the server without waiting for the user to hit save.  Is there any way to disable the delete button until the edit button has been pushed or otherwise require that user hit save before any deletions are actually performed? 

The second problem occurs on the same form.  ComponentOne's grid allows the user to highlight a row and hit the delete key to delete it.  If the user makes use of this functionality the current grid is deleted and then the StrataFrame delete confirmation message is displayed.  If user elects to proceed with the delete then a second row is deleted.  Is that something you've seen before or have any idea how to work around?

Thanks for your help.

Fran Parker

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search