Results 1 to 2 of 2

Thread: [2005] Multiple DGV Rows

  1. #1

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Lightbulb [2005] Multiple DGV Rows

    Hello to all again,

    I have a problem and i have to ask you my friends about it...

    How can i INSERT the HOLE DataGridView to my Access DataBase ?

    For a single position from a textbox i know it but i don't know how can i do it for a hole DGV!

    Thanks in advice!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

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

    Re: [2005] Multiple DGV Rows

    Create a DataTable with the appropriate schema and bind it to the grid. After the user has added the desired data to the grid you simply call Update on a DataAdapter or TableAdapter and pass the bound DataTable as a parameter.

    Note that your controls have NOTHING to do with data access. Controls are just a way of displaying data to the user and accepting input. Data access is what it is whether you're using controls to interact with the user or not. For some ADO.NET code examples follow the Data Access link in my signature.
    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