Results 1 to 2 of 2

Thread: [2008] update datagridviw (urgent)

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    [2008] update datagridviw (urgent)

    Hello,

    I would like to save that i made in the datagrid view to the database.

    datasource of the datagridview is named "NprofileBindingSource1"

    How can i save the changes?

    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2008] update datagridviw (urgent)

    What's bound to the BindingSource? A DataTable? If so then you use the same DataAdapter or TableAdapter you used to populate it in the first place. Just call Update instead of Fill.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width