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. paging in datalist in vb.net1.1

paging in datalist in vb.net1.1

Scheduled Pinned Locked Moved ASP.NET
csharphelp
5 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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir, Is it possible to do pagging on datalist if I don't have oledbconnection because I am creating datatable in the datatset at runtime in the following code. ds.Tables.Add(New DataTable("search")) ds.Tables("search").Columns.Add("file_title", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_length", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_url", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_desc", System.Type.GetType("System.String")) Dim row As DataRow row = ds.Tables("search").NewRow row("file_title") = filetitle row("file_desc") = temp row("file_url") = fileurl row("file_length") = filelength ds.Tables("search").Rows.Add(row) in the search table i have added twenty rows.I want to display ten rows in one page. Please help me Thanks and Regards Amaneet Brar

    A 1 Reply Last reply
    0
    • A amaneet

      Sir, Is it possible to do pagging on datalist if I don't have oledbconnection because I am creating datatable in the datatset at runtime in the following code. ds.Tables.Add(New DataTable("search")) ds.Tables("search").Columns.Add("file_title", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_length", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_url", System.Type.GetType("System.String")) ds.Tables("search").Columns.Add("file_desc", System.Type.GetType("System.String")) Dim row As DataRow row = ds.Tables("search").NewRow row("file_title") = filetitle row("file_desc") = temp row("file_url") = fileurl row("file_length") = filelength ds.Tables("search").Rows.Add(row) in the search table i have added twenty rows.I want to display ten rows in one page. Please help me Thanks and Regards Amaneet Brar

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      yes u can do that simple on datagrid allow paging =true like datagrid1.allowpaging=true than there is another property datagrid.pagesize=10 i hope it will work Regards :zzz: Ahsan Ullah

      A 1 Reply Last reply
      0
      • A AhsanS

        yes u can do that simple on datagrid allow paging =true like datagrid1.allowpaging=true than there is another property datagrid.pagesize=10 i hope it will work Regards :zzz: Ahsan Ullah

        A Offline
        A Offline
        amaneet
        wrote on last edited by
        #3

        I want to paging in datalist when i don't have connection .

        A M 2 Replies Last reply
        0
        • A amaneet

          I want to paging in datalist when i don't have connection .

          A Offline
          A Offline
          AhsanS
          wrote on last edited by
          #4

          all datagrid require is datasource.and when u are providing that u can do paging. Ahsan Ullah

          1 Reply Last reply
          0
          • A amaneet

            I want to paging in datalist when i don't have connection .

            M Offline
            M Offline
            MalikRizwan
            wrote on last edited by
            #5

            use paged data source like this Dim dsPaged As New PagedDataSource dsPaged.DataSource = ds.Tables(0).DefaultView dsPaged.AllowPaging = True dsPaged.PageSize = 5 it is more flexible**

            R A M

            **

            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