I'm using the navigator and the built in new record functionality. I am not using a DGV. Instead I have just unique records displaying values in controls for every record.
I need to set some initial/default values when the user selects the "+" button (BindingNavigatorAddNewItem). I tried using the AddingNew event. Even though it does fire when "+", when I try to set some values nothing really happens.
I've spent quite some time searching and haven't found and answer yet. What I want to do is have some values prepopulated when the "+" is pressed so that these values will then be saved to the underlying table.
I need to set some initial/default values when the user selects the "+" button (BindingNavigatorAddNewItem). I tried using the AddingNew event. Even though it does fire when "+", when I try to set some values nothing really happens.
Code:
Private Sub TRANS_MEMBERSBindingSource_AddingNew(ByVal sender As System.Object, ByVal e As System.ComponentModel.AddingNewEventArgs) Handles TRANS_MEMBERSBindingSource.AddingNew
WheelGroup.EditValue = 0
End Sub