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. Web Development
  3. ASP.NET
  4. gridview problem

gridview problem

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 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.
  • S Offline
    S Offline
    solarthur01
    wrote on last edited by
    #1

    I am trying to use the gridview control to display data on page, however the data is not displayed. I am not getting any build error but its just not displaying the data. Any ideas??

    SelectCommand="SELECT [ID], [OrderCode] FROM [glaxoAll5032007OrderDetail]"> Can anyone spot what i may have done wrong??? Many Thanks in advance.

    D 1 Reply Last reply
    0
    • S solarthur01

      I am trying to use the gridview control to display data on page, however the data is not displayed. I am not getting any build error but its just not displaying the data. Any ideas??

      SelectCommand="SELECT [ID], [OrderCode] FROM [glaxoAll5032007OrderDetail]"> Can anyone spot what i may have done wrong??? Many Thanks in advance.

      D Offline
      D Offline
      Declan Bright
      wrote on last edited by
      #2

      You need to set DataSourceID on the GridView:

      <asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1"></asp:GridView>

      Declan Bright www.declanbright.com

      S 1 Reply Last reply
      0
      • D Declan Bright

        You need to set DataSourceID on the GridView:

        <asp:GridView ID="GridView1" runat="server" DataSourceID="AccessDataSource1"></asp:GridView>

        Declan Bright www.declanbright.com

        S Offline
        S Offline
        solarthur01
        wrote on last edited by
        #3

        Many thanks!! that worked.

        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