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 Paging

Gridview Paging

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
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.
  • V Offline
    V Offline
    venkata lakshmi prasanna
    wrote on last edited by
    #1

    Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u

    F S 2 Replies Last reply
    0
    • V venkata lakshmi prasanna

      Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u

      F Offline
      F Offline
      Fred_Smith
      wrote on last edited by
      #2

      you need to bind to a datatable, not a datareader

      1 Reply Last reply
      0
      • V venkata lakshmi prasanna

        Hi,friends i hav set allow paging property to true. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load cmd.Connection = cn cmd.CommandText = "select * from EMP_DETAILS" cn.Open() grd.DataSource = cmd.ExecuteReader grd.DataBind() cn.Close() End Sub This is the error iam getting. The data source does not support server-side data paging. Suggest me to handle the error. Thank u

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        Use Datatable or Dataset instead of Datareader.

        SSK.

        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