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. C#
  4. DataGridView DeleteRow issue

DataGridView DeleteRow issue

Scheduled Pinned Locked Moved C#
helptutorialquestion
4 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.
  • N Offline
    N Offline
    NewToAspDotNet
    wrote on last edited by
    #1

    Hi guys, I have a datagridview. i can delete all rows, bud not the last row, i mean i can't never delete wen there is only one row remaind. any idea how to fix this? thanx.

    K U 2 Replies Last reply
    0
    • N NewToAspDotNet

      Hi guys, I have a datagridview. i can delete all rows, bud not the last row, i mean i can't never delete wen there is only one row remaind. any idea how to fix this? thanx.

      K Offline
      K Offline
      KennyPatel
      wrote on last edited by
      #2

      hi dear, what u r using to delete in GV. like checkbox or button. could tell me i can do something. if you clear this thanks

      "Good Thing Goes With Good People..."

      N 1 Reply Last reply
      0
      • N NewToAspDotNet

        Hi guys, I have a datagridview. i can delete all rows, bud not the last row, i mean i can't never delete wen there is only one row remaind. any idea how to fix this? thanx.

        U Offline
        U Offline
        Ujjaval Modi
        wrote on last edited by
        #3

        Hi, If you are writing your code to delete rows in datagridview's SelectionChanged event, then you will face this problem. try writing the deletion code in datagridview's CellClick event.

        Regards, Ujjaval Modi :) Manpower moves wrenches, horsepower moves cars, and the power of the mind moves the world.

        1 Reply Last reply
        0
        • K KennyPatel

          hi dear, what u r using to delete in GV. like checkbox or button. could tell me i can do something. if you clear this thanks

          "Good Thing Goes With Good People..."

          N Offline
          N Offline
          NewToAspDotNet
          wrote on last edited by
          #4

          Hi PTells, thanx for your response, i m using a buttom for deleting.

          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