Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27509

BindingNavigator and initial values....how to set

$
0
0
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.

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

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.

Viewing all articles
Browse latest Browse all 27509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>