datagridview

25 pts.
Tags:
Database
I am using vb.net and access database. I have a datagridview with 20 rows and 5 columns( filed name in access table as follows: S.no,product_code,product_name,qty.rate).I want to update all datas which I entered in the datagridview to the concernd table.. Can you plz give me the code for updating database.  table name: Iteminvtbl button name ( for update): updatebtn I tried in different ways,But I failed.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    "I want to update all datas which I entered in the datagridview to the concernd table" Dos that mean that those records already exist in the database but you want to update them with the data from the grid ? Or is it inserting them into the table what you really want to do ? "I tried in different ways,But I failed. " It would be useful to see the ways you have already tried. Can you post them ?
    69,510 pointsBadges:
    report
  • AdamSm
    <a href="http://www.techyv.com/solved">Here is my code</a>, but its the other way around, it commits changes to the datagridview when the database is updated
    35 pointsBadges:
    report
  • TomLiotta
    As usual, the "techyv" link doesn't help at all. It's not clear why such bad information keeps getting linked here except to advertise an almost useless site. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following