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. General Programming
  3. C#
  4. Dataset and Datagrid

Dataset and Datagrid

Scheduled Pinned Locked Moved C#
csharphtmlvisual-studiosales
4 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.
  • T Offline
    T Offline
    TheJudeDude
    wrote on last edited by
    #1

    I am working on a web application that uses a datagrid, dataset and an sqldataadapter. I have the datasoucre for the datagrid as the dataset. When I click on the link in VS for the data adapter "Preview Data" and click on Fill DataSet, all rows in the SELECT statement are returned. But when I run the web app, the datagrid is never filled. In fact nothing shows up. The Select Command on the Data Adapter :SELECT FirstName, LastName, SSNumb, CustomerNumb FROM Customer Code for Fill :sqlDataAdapter1.Fill(dataSet11,"Customer"); HTML Page language="c#" Codebehind="Customer.aspx.cs" AutoEventWireup="false" Inherits="rental.Customer" %> Customer

    Logo

    Thanx in advance! Jude

    E 1 Reply Last reply
    0
    • T TheJudeDude

      I am working on a web application that uses a datagrid, dataset and an sqldataadapter. I have the datasoucre for the datagrid as the dataset. When I click on the link in VS for the data adapter "Preview Data" and click on Fill DataSet, all rows in the SELECT statement are returned. But when I run the web app, the datagrid is never filled. In fact nothing shows up. The Select Command on the Data Adapter :SELECT FirstName, LastName, SSNumb, CustomerNumb FROM Customer Code for Fill :sqlDataAdapter1.Fill(dataSet11,"Customer"); HTML Page language="c#" Codebehind="Customer.aspx.cs" AutoEventWireup="false" Inherits="rental.Customer" %> Customer

      Logo

      Thanx in advance! Jude

      E Offline
      E Offline
      esjq
      wrote on last edited by
      #2

      You say you have set the datasource property of the datagrid to the dataset. You haven't simply forgot to call the DataBind method of the datagrid?

      T 1 Reply Last reply
      0
      • E esjq

        You say you have set the datasource property of the datagrid to the dataset. You haven't simply forgot to call the DataBind method of the datagrid?

        T Offline
        T Offline
        TheJudeDude
        wrote on last edited by
        #3

        HAHA! Thanx..yes I forgot Jude

        T 1 Reply Last reply
        0
        • T TheJudeDude

          HAHA! Thanx..yes I forgot Jude

          T Offline
          T Offline
          TheJudeDude
          wrote on last edited by
          #4

          Well, now that I have the datagrid being filled, I cannot navigatel. I have paging enabled. Do I have to tell the datagrid to go to the next page? If so, how? Jude

          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