Anonymous User. Post Reset. All Rights Reserved. Remember me. Forgot Password? Do not have an account? Ask a Question. Please Sign up or sign in to vote. See more: VB. I'm trying to read a datagridview and post the changes back to the SQL database. Does anyone have some straightforward code that will work. I'm a newbie in VB. Posted 2-Jun am Roger Rainey. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. Hi Roger, When people ask for "Straightforward code" it's kind of impossible to respond.
Nor will they create it for you if you are not willing to put some effort into it yourself. The best way to start a project like this is to read some articles about what you are doing. You can search codeproject for articles, like this.
Then as you implement code you've found in the article, if you run into problems post your code and error messages and a description of what your program is doing and what you want it to do. Then we can help you. Hope this gives you a good place to start.
Posted 2-Jun am Kschuler. I have a access connection with textbox as data feeder to database change it to SQL if u want. The code is: VB. Copy Code. Posted Mar pm vijitizer. Sandeep Mewara Mar am. Always wrap your code in PRE tags. It makes the question readable as it formats it. You can move, or remove it, as needed. Fill this. Update gridTestDataSet.
Emp ; dataGridView1. Refresh ; MessageBox. If you update any cell and click the update button, then the database will be updated. To delete, select the rows and then press the Delete key and click the update button; the rows will be deleted.
All your insertions, updates, and deletions will be effected by the single button. View All. Database Updates From DatagridView.
0コメント