I am using a BindingNavigator to allow navigation through data on my form.
Depending on the situation, I either want to enable or disable the Delete button on the navigation bar (the red "X").
However, I am having problems getting this to work. I have narrowed it down to a situation where it appears certain things reset the enabled property.
For instance, if I have the form open and the delete button is disabled, if I do an AcceptChanges on the dataset, the BindingNavigator delete button resets to be enabled. If I add a line immediately after the ds.AcceptChanges to reset the button to be disabled, it works fine.
My question is why does this happen? What would be the best way to handle it? Certainly I could reset the value after each ds.AcceptChanges, but this doesn't seem real elegant.
Also, are there any other situations I should be aware of that would reset the enabled property?
Any information regarding this situation is much appreciated.