By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

Code for Binding Navigator

P: n/a
Hi,
I'd like to add a new blank record to a form for the user to input
data. What I am trying to do is exactly what the + on the binding
navigator does, with some additional steps involved. So, my question
can be asked from two directions:

1. Is the binding navigator code visible somewhere? If it is, I'll
just copy it from there into my procedure.
2. What is the code that the binding navigator uses to add this blank
row without trying to pass it to the dataset or the datasource? I
need to allow the user time to enter data before passing it or else it
will fail due to null values, etc.

Thanks,
Randy

Apr 22 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Randy,

Your code should call the bindingsource's AddNew method.

Kerry Moorman
"Randy" wrote:
Hi,
I'd like to add a new blank record to a form for the user to input
data. What I am trying to do is exactly what the + on the binding
navigator does, with some additional steps involved. So, my question
can be asked from two directions:

1. Is the binding navigator code visible somewhere? If it is, I'll
just copy it from there into my procedure.
2. What is the code that the binding navigator uses to add this blank
row without trying to pass it to the dataset or the datasource? I
need to allow the user time to enter data before passing it or else it
will fail due to null values, etc.

Thanks,
Randy

Apr 22 '07 #2

P: n/a
Just what I needed. I figured that it was something pretty simple. I
was using the dataset NewRow method, which didn't work for this
purpose. Thanks a lot!
Randy

Apr 22 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.