|
-
August 29th, 2009, 05:45 AM
#1
[RESOLVED] EndEdit Doesn't Add Record!
Ok... this is driving me nuts.
I have a DataGridView that loads an Access database when the application starts. I also have a bunch of text boxes that are bound to the same database. When you click on a row in the DataGridView the text boxes display the data for the record you clicked on.. perfect so far... now when I want to add a new record..
I do...
BindingSource.AddNew()
This removes all the data from the textboxes and I start typing away.
When im done I hit a Save button with the following code.
BindingSource.EndEdit()
It removes all the data from the text boxes but never saves to the database! What am I doing wrong?
Last edited by fallnwrld; August 29th, 2009 at 05:51 AM.
Using VB .Net 2008 Express Edition
-
August 29th, 2009, 09:55 AM
#2
Re: EndEdit Doesn't Add Record!
-
August 30th, 2009, 04:54 PM
#3
Re: EndEdit Doesn't Add Record!
BindingSource doesn't have have an .update option?
Using VB .Net 2008 Express Edition
-
August 30th, 2009, 09:37 PM
#4
Re: EndEdit Doesn't Add Record!
-
August 30th, 2009, 11:01 PM
#5
Re: EndEdit Doesn't Add Record!
Thanks that post helped. I was manually trying to bind them instead of just dragging and dropping the controls from the dataset onto the form.
Using VB .Net 2008 Express Edition
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|