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. Visual Basic
  4. searching AND paging?

searching AND paging?

Scheduled Pinned Locked Moved Visual Basic
helpcsswpfwcfalgorithms
1 Posts 1 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.
  • B Offline
    B Offline
    BORN again
    wrote on last edited by
    #1

    I have a datagrid in which I have 'Paging' functionality of type numeric (pages 1 to 10....) and also a search functionality wherein the user enters say name or branchname or recordno in the text box and the datagrid searches the desired record/s. My problem is the 'search' functionality works only the first page (or parent page) of the datagrid but when I am on say page no 2 or 4 or 10 etc... it doesn't work it comes with the following error: System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. My code for paging is as follows: '*********************************************************************** Sub DataGrid_PageChanger(Source As Object, E As DataGridPageChangedEventArgs) ' Set the CurrentPageIndex before binding the grid DataGrid.CurrentPageIndex = E.NewPageIndex Refreshgrid(Cint(ddlBranch.SelectedItem.Value),txtsearch.text) End Sub '*********************************************************************** Any suggestions? Thanks a ton!!! Aartee. ...HE is watching Us All!

    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