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. Dataset

Dataset

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 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
    Mkanchha
    wrote on last edited by
    #1

    I my dataset there are 100 records, how to get the records between 5 to 10 If you have the example please Paste it. Mkanchha

    N 1 Reply Last reply
    0
    • M Mkanchha

      I my dataset there are 100 records, how to get the records between 5 to 10 If you have the example please Paste it. Mkanchha

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Mkanchha wrote:

      I my dataset there are 100 records

      Do you mean 100 tables. ? :confused: A dataset can contain tables. But not rows. I assume that you have a datatable that contains 100 records and you want to take records between 5 to 10. So the code could be something like this

      for(int i=5;i<=10;i++)
      {
      Response.Write(YourDs.Tables[TableName].Rows[i][YourColumnName].ToString());
      }

      Navaneeth My Website

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        Mkanchha wrote:

        I my dataset there are 100 records

        Do you mean 100 tables. ? :confused: A dataset can contain tables. But not rows. I assume that you have a datatable that contains 100 records and you want to take records between 5 to 10. So the code could be something like this

        for(int i=5;i<=10;i++)
        {
        Response.Write(YourDs.Tables[TableName].Rows[i][YourColumnName].ToString());
        }

        Navaneeth My Website

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Navaneeth. wrote:

        A dataset can contain tables. But not rows.

        I think he want to say that Dataset contains 100 records means indirectly Dataset Contains one table which have 100 rows so !!! posted code is right :omg:

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        N 1 Reply Last reply
        0
        • S Sandeep Akhare

          Navaneeth. wrote:

          A dataset can contain tables. But not rows.

          I think he want to say that Dataset contains 100 records means indirectly Dataset Contains one table which have 100 rows so !!! posted code is right :omg:

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          People got confusion between datasets and tables.. :laugh:

          Navaneeth My Website

          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