Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to update a db table with data in an unbound datatable

Status
Not open for further replies.

marskills

Programmer
Oct 14, 2007
7
CA
Newbie here - So I apologise in advance if the answer is straight forward...

I have a datagridview that is bound to a datatable. This datatable is created programatically and NOT bound to a database table.

How do I save the data that I've added to the datatable (dtGridData) to the Database Table that has the the same structure?

Any help would be greatly appreciated.

Oh, one other question; How do you set a datagrids' column to a particular Type? e.g. Integer (specifically the mysql table is Decimal(10,0)) TIA.

Rory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top