Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataGridView Two-Way Binding
 

DataGridView Two-Way Binding

Hi
this is probably those kind of questions that comes one a month, sorry about that

I have a DB in MySQL and i'm using the mySQL drivers
I've manage to create a DataGridView that shows the accurate information from a given table

What i wanted i that this DataGridView acted as a "port" to the DB, what i mean is, when i delete a row on this DataGridView the actual row in the Table is also deleted, the same for updates and inserts.
How can i do this ?
Can you point me to some sample code, tutorials or previous posts on the subject ?

Thanks
zrbamax  Friday, May 19, 2006 1:21 PM
This type of action is usually handled by the DataAdapter. There is tons of information around about how to use a DataAdapter to handle inserts, updates and deletes.
Aspnot  Monday, May 22, 2006 5:56 PM

You can use google to search for other answers

Custom Search

More Threads

• DataTable without Dataset
• Binding Checkbox to SQL 'Bit' Column?
• Index out of Range in datagrid.select()
• Column Types in the DataGridView Control
• Prevent edit DataGridViewCheckBoxCell
• Changing from edit to insert mode
• Make Simple Binding to Control/Class Property Two-way?
• NullReferenceException when assigning to dataGridView.CurrentCell.Value in C++
• DataGrid.Navigate Event
• AddNew (BindingSource)