How to edit, delete and modify rows - dataGridView

  • Thread starter Thread starter S_K
  • Start date Start date
S

S_K

Hi,

I have a dataGridView where everything seems to be set up to add,
modify and delete rows. However I can't get the dataGridView to
actually SAVE THE CHANGES back to the database.

Any help?

Thanks
Steve
 
Im assuming you dont have the
..endedit

or the acceptchanges()
before your update button.

Can you post some code?

Miro
 
Im assuming you dont have the
.endedit

or the acceptchanges()
before your update button.

Can you post some code?

Miro









- Show quoted text -

I'm just a newbee here. The dataGridView will allow me to change the
data within the cells or add a new row, but the changes never get to
the database. I read the example on the MSDN but it dosen't seem to
have anything on updating the database.

What do you mean "or the acceptchanges()
before your update button. "??? I don't see any acceptchanges() method
in the dataGridView events!?

Thanks again for your help.
 
I'm just a newbee here. The dataGridView will allow me to change the
data within the cells or add a new row, but the changes never get to
the database. I read the example on the MSDN but it dosen't seem to
have anything on updating the database.

What do you mean "or the acceptchanges()
before your update button. "??? I don't see any acceptchanges() method
in the dataGridView events!?

Thanks again for your help.

Here's more advanced example
http://msdn.microsoft.com/en-us/library/ms972948.aspx

Please let me know if you have any questions
 
Here's more advanced examplehttp://msdn.microsoft.com/en-us/library/ms972948.aspx

Please let me know if you have any questions- Hide quoted text -

- Show quoted text -

I've been doing some reading....
Is it true that a DataGridView (versus a GridView) is only READING the
data? Thus no editing/deleting possible?
The more advanced example only applies to the ASP.NET GridView....

Thanks again for your help..

Steve
 
Back
Top