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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb.NET Datagrid vith MySql

Status
Not open for further replies.

160473

IS-IT--Management
Apr 16, 2003
55
FI
I have populated a datagrid with data from a MySql table in normal maners (MySqlDataAdapter, DataTable etc).
Now, when I change data (rows or cells) the data in MySql must change at the same time. All information I can find is about asp.NET with a [EDIT] button. I like the datagrid to function just like Access tables.
Any ideas?
 
If you are looking for an interface solution for updating data from a datagrid in ASP.Net, I would recommend looking on the Microsoft: ASP.NET forum.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
No I'm NOT looking for a solution for ASP.NET.
VB.NET my dear friend.
 
The Datagrid is simply a container for displaying the underlying data. Changes made in the grid are made in the underlying datatable also. Each row of a grid represents a datarow in the datatable.

Note that the datarow has beginedit and endedit methods.

To fire back the updates, use the .Update method of the DataAdaptor

Dont forget you are working with disconnected data here, and its not like Access, where you are bound to the data. I guess if you reall wanted you could fire back an update after moving between each cell change, but personally I would only do this on row change.



Sweep
...if it works dont mess with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top