Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / May 2006

Tip: Looking for answers? Try searching our database.

newbie -- datagrid not automatically committing edits and inserts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Freddy - 18 May 2006 18:04 GMT
Hi,

Using VS 2005 and Sql Server 2005.  I've created a datagrid using the
wizard, and told it to generate insert and update statements.  the datagrid
displays the data nicely, i can edit cells, and add new rows.  but these
changes do not get posted to the actual database. there must be something
very simple i am missing -- please advise!

do i have to actually call the insert and update methods, or is there a way
to have any changes automaticalloy posted?

also -- tho i've been googling around, i'd appreciate any pointers to good
documentation on the whole datagrid area.

Thanks for any help!

Fred
Fanor - 26 May 2006 21:23 GMT
> Hi,
>
[quoted text clipped - 13 lines]
>
> Fred

you have to call bindingsource.endedit() on order to update
FredR - 30 May 2006 14:13 GMT
Hi and Thanks for your response.

I tried what you suggested, and I'm getting this error message:
"Update requires a valid UpdateCommand when passed DataRow collection with
modified rows."

any clues?
thanks!

Fred

>> Hi,
>>
[quoted text clipped - 15 lines]
>
> you have to call bindingsource.endedit() on order to update

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.