Data Grid View Update

Hello,

I'm real new to the programming stuff but want to be a programmer.  :-) Anyway, I created a database using Visual Basic Express Edition and placed a Data Grid View on the form.  However, if I double-click or press F2 in the field and edit that field and then press enter, the cursor goes to the next area however nothing is saved.  Simply put, the Data Grid View is not working or I'm doing something wrong.

I really need to know how to update the fields in the database, what coding I would need and if I would need another button to do this or would this happen automatically.

Any ideas

Thank you.



Answer this question

Data Grid View Update

  • aprilmadams

    hi,

    im really new like you but i was countering this problem from b4 i guess your the problem is one of two or both of them

    1) the datagridview maybe binded to your dataset not to your database if its that you need to call your tableadapter to update your databasefrom your dataset when you finish editing and click okbutton or what ever when you finish editing.

    2) actualy you have 2 databases not one. one in the root of your project forlder and the other one in your "projectfolder/bin/debuge" every time you run your project the database that in your debuge folder will be replaced by your source, so if you did any changes from b4 it will be losted. to know if this is the problem or not copy the database that relay in  the debuge folder and past it in your project folder and open it in your vb database explorer and see if the data was saved or not during your testing

    hope that was helpfull

    bye



  • Data Grid View Update