Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. dataTables to to gridView

dataTables to to gridView

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Sernal
    wrote on last edited by
    #1

    'in here he put the dataTables of a dataSet in a dataTable
    pt = dsPubs.Tables(0)
    appt = dsPubs.Tables(1)

    'below here he set the datasource of the gridview with the specified dataTable of the dataSet, what is the purpose of the above code then?
    GridView1.DataSource = dsPubs.Tables(0)
    GridView1.DataBind()
    GridView2.DataSource = dsPubs.Tables(1)
    GridView2.DataBind()

    A Z 2 Replies Last reply
    0
    • M Michael Sernal

      'in here he put the dataTables of a dataSet in a dataTable
      pt = dsPubs.Tables(0)
      appt = dsPubs.Tables(1)

      'below here he set the datasource of the gridview with the specified dataTable of the dataSet, what is the purpose of the above code then?
      GridView1.DataSource = dsPubs.Tables(0)
      GridView1.DataBind()
      GridView2.DataSource = dsPubs.Tables(1)
      GridView2.DataBind()

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      Confusion... otherwise known as job security... :suss: ;P :laugh:

      1 Reply Last reply
      0
      • M Michael Sernal

        'in here he put the dataTables of a dataSet in a dataTable
        pt = dsPubs.Tables(0)
        appt = dsPubs.Tables(1)

        'below here he set the datasource of the gridview with the specified dataTable of the dataSet, what is the purpose of the above code then?
        GridView1.DataSource = dsPubs.Tables(0)
        GridView1.DataBind()
        GridView2.DataSource = dsPubs.Tables(1)
        GridView2.DataBind()

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        He was just putting the DataTables off to the side in case he needed them later. You never know when you might need a good DataTable again. :)

        There are only 10 types of people in the world, those who understand binary and those who don't.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups