When I hit the Add button in the DataForm, all other buttons are disabled except the Save and Cancel. At this point there are fields that are not valid (required for instance), but the user can still hit Save. Validation kicks in, but I would prefer that the Save button would remain disabled until all fields are valid.
When the Edit button is hit, only the Edit button is disabled. If the user edits the form, the record is now dirty, but the user is able to hit any of the other buttons (Add, Delete, or the Navigation buttons). Now granted if you navigate to another record and then come back your changes are still there, but the Save and Cancel buttons are disabled until you hit edit again. At this point Cancel does not remove any changes. I am not using AutoCommit.
I would prefer that Edit would disable all the other commands, and Save would only become enabled when the user actually makes a change, and as with the Add button, Save would remain disabled until all fields are valid.
I assume you have valid reasons for the current implementation; however I would like to be able to override this behavior with the aboved described behavior. Can you provide any guidance?
What I'd really like is to have control over the CanExecute method of the commands. Is there any way to acheive this?
Thanks in advance,
Steve
When the Edit button is hit, only the Edit button is disabled. If the user edits the form, the record is now dirty, but the user is able to hit any of the other buttons (Add, Delete, or the Navigation buttons). Now granted if you navigate to another record and then come back your changes are still there, but the Save and Cancel buttons are disabled until you hit edit again. At this point Cancel does not remove any changes. I am not using AutoCommit.
I would prefer that Edit would disable all the other commands, and Save would only become enabled when the user actually makes a change, and as with the Add button, Save would remain disabled until all fields are valid.
I assume you have valid reasons for the current implementation; however I would like to be able to override this behavior with the aboved described behavior. Can you provide any guidance?
What I'd really like is to have control over the CanExecute method of the commands. Is there any way to acheive this?
Thanks in advance,
Steve