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. Datagrid row delete

Datagrid row delete

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 Posts 2 Posters 4 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.
  • S Offline
    S Offline
    SamRST
    wrote on last edited by
    #1

    hi frnds.. i want to delete a row in datagrid when i select a row and press delete button,,, is there any event for that or how can i do this.. plse help me quick.. cheers..

    J 1 Reply Last reply
    0
    • S SamRST

      hi frnds.. i want to delete a row in datagrid when i select a row and press delete button,,, is there any event for that or how can i do this.. plse help me quick.. cheers..

      J Offline
      J Offline
      Jwalant Natvarlal Soneji
      wrote on last edited by
      #2

      Dear SamRST, If you have added a delete column then can get the e on datagrid itemcommand event and the e.item.itemindex will give you the index and you can get the value of that row by this index and can delete that, or use select column and get the selected index changed event of that grid to do so.

      Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com

      S 1 Reply Last reply
      0
      • J Jwalant Natvarlal Soneji

        Dear SamRST, If you have added a delete column then can get the e on datagrid itemcommand event and the e.item.itemindex will give you the index and you can get the value of that row by this index and can delete that, or use select column and get the selected index changed event of that grid to do so.

        Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com

        S Offline
        S Offline
        SamRST
        wrote on last edited by
        #3

        thnks for reply, its not enough bcose, i'm using windows forms , not web forms.. for web forms, its okay... but .. cheers

        J 1 Reply Last reply
        0
        • S SamRST

          thnks for reply, its not enough bcose, i'm using windows forms , not web forms.. for web forms, its okay... but .. cheers

          J Offline
          J Offline
          Jwalant Natvarlal Soneji
          wrote on last edited by
          #4

          ohh sorry, did not realize that...

          Jwalant Soneji (BE IT) Mobile: +91 9969059127 http://jnsoneji.spaces.live.com http://jnsoneji.blogspot.com

          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