Results 1 to 3 of 3

Thread: [RESOLVED] Set DataGrid1.DataSource = rs

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    17

    Resolved [RESOLVED] Set DataGrid1.DataSource = rs

    I am using the following statement in my vb6 code:
    Set DataGrid1.DataSource = rs
    How am I supposed to use this statement in vb10?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Set DataGrid1.DataSource = rs

    Thread moved to the VB.Net forum.

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

    Re: Set DataGrid1.DataSource = rs

    It's basically the same except you don't use the Set keyword. You'll be using a DataGridView and a DataTable but it's still a matter of setting the control's DataSource property.
    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