Opening Window with AddNewItem on Binding Navigator already selected?

Troy

Well-known member
Joined
Feb 7, 2005
Messages
153
Programming Experience
10+
I have created a windows with textboxes bound to my database, they display the current field information. I have a bindingnavigation bar also and Everything works fine as far as I can move from record to record and back using the navigation buttons and I can click add and it will move to the next empty record to add the information as expected. What I would like is though to be able to open the window with it already selected. Like the window pops up and it's already at the end of the database with clean fields ready for me to input my data.

Can I set some command on my Binding Navigator to have it open in AddItem mode?:confused:

I should add I am using .Net 2.0 and VS 2005

This project is in ADO.
 
Last edited:
Call BindingSource.AddNew() on whatever bindingsource the BindingNavigator is associated with
 
Thanks Ihad already figured that out but I do appreciate the response.

One thing I'm noticing is When I click add it moves to the end and creates a new record but when I try to save it it never actually writes to my database.
 
Back
Top