PC Review


Reply
Thread Tools Rate Thread

Datagridview saving data to database

 
 
Tom Nowak
Guest
Posts: n/a
 
      28th Feb 2009
I have created a form strictly using code where I have a combo box and a
datagridview. I want to set it up where a user enters in the combo box, and
the datagridview is populated based on what the use enters in the combobox.
Also, I want to be able to edit one column in the datagridview, and I want to
be able to save the data back to the database. I can get the datagridview to
populate correctly, but I cant figure out how to save the data. Please help.
 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      2nd Mar 2009
Tom,

Their are thousand methods to populate a datagridview, however no one has
the name "correctly"

Will you tell us wha is in your opinion the correctly way to populate it,
maybe someone else can tell you then how to update the database with that.

Cor

"Tom Nowak" <(E-Mail Removed)> wrote in message
news:4485D128-2E14-494A-965D-(E-Mail Removed)...
>I have created a form strictly using code where I have a combo box and a
> datagridview. I want to set it up where a user enters in the combo box,
> and
> the datagridview is populated based on what the use enters in the
> combobox.
> Also, I want to be able to edit one column in the datagridview, and I want
> to
> be able to save the data back to the database. I can get the datagridview
> to
> populate correctly, but I cant figure out how to save the data. Please
> help.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting changes in a DataGridView and saving them to the database Andrew Microsoft VB .NET 1 24th Apr 2009 11:44 AM
Saving DataGridView Data Barry Microsoft Dot NET Framework 0 8th Oct 2007 09:28 AM
Saving changes from DataGridView into database karim Microsoft ADO .NET 1 6th Feb 2007 01:14 PM
saving data from a form in one database into another database chummy via AccessMonster.com Microsoft Access Form Coding 1 24th May 2006 04:00 PM
Saving data from datagridview Bob Simoneau Microsoft ADO .NET 1 8th Feb 2006 03:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:49 AM.