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. Paging in Datagrid and deletion of records

Paging in Datagrid and deletion of records

Scheduled Pinned Locked Moved Web Development
css
2 Posts 2 Posters 1 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.
  • U Offline
    U Offline
    User 912763
    wrote on last edited by
    #1

    I tried so many times to use paging as well as deletion pf records in a data grid .But when i click on paging numbers the ItemCommand event is fired instead of PageIndexChanged event. The ItemCommand event is meant for deletion where as PageIndexChanged event is meant for paging of datagrid. I want an application where two recors will be displayed with delete buttons for each record.There will be paging numbers to navigate to other records in the dataset:~ .

    M 1 Reply Last reply
    0
    • U User 912763

      I tried so many times to use paging as well as deletion pf records in a data grid .But when i click on paging numbers the ItemCommand event is fired instead of PageIndexChanged event. The ItemCommand event is meant for deletion where as PageIndexChanged event is meant for paging of datagrid. I want an application where two recors will be displayed with delete buttons for each record.There will be paging numbers to navigate to other records in the dataset:~ .

      M Offline
      M Offline
      Marcie Jones
      wrote on last edited by
      #2

      Hi Satyajit, The ItemCommand event fires pretty much whenever anything happens inside a Datagrid, so you'll want to trap for CommandName. Only process your Delete logic when the CommandName is "Delete". Is the PageIndexChanged event not also being fired? Marcie CP Blog[^]

      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