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. Other Discussions
  3. Clever Code
  4. Deleting Rows and Columns in DataGridView

Deleting Rows and Columns in DataGridView

Scheduled Pinned Locked Moved Clever Code
csharphtmldatabasecomtools
7 Posts 4 Posters 20 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
    Bassam Abdul Baki
    wrote on last edited by
    #1

    Just spent a good 5 minutes trying to figure out what the heck is wrong with my program's logic. I have a symmetric matrix that I'm deleting rows and columns of (same index) in a certain order. All's well except the last one. When you delete the last row or column (deleting the matrix), it sort of deletes the remaining column or row. D'oh!


    Web - Blog - RSS - Math - BM

    P P M 4 Replies Last reply
    0
    • B Bassam Abdul Baki

      Just spent a good 5 minutes trying to figure out what the heck is wrong with my program's logic. I have a symmetric matrix that I'm deleting rows and columns of (same index) in a certain order. All's well except the last one. When you delete the last row or column (deleting the matrix), it sort of deletes the remaining column or row. D'oh!


      Web - Blog - RSS - Math - BM

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Is this a built-in class? Third-party? Something you created? :confused: P.S. And did you fix it?

      modified on Wednesday, October 29, 2008 4:51 PM

      B 1 Reply Last reply
      0
      • B Bassam Abdul Baki

        Just spent a good 5 minutes trying to figure out what the heck is wrong with my program's logic. I have a symmetric matrix that I'm deleting rows and columns of (same index) in a certain order. All's well except the last one. When you delete the last row or column (deleting the matrix), it sort of deletes the remaining column or row. D'oh!


        Web - Blog - RSS - Math - BM

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        How did you fix it?

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

        B 1 Reply Last reply
        0
        • P PIEBALDconsult

          Is this a built-in class? Third-party? Something you created? :confused: P.S. And did you fix it?

          modified on Wednesday, October 29, 2008 4:51 PM

          B Offline
          B Offline
          Bassam Abdul Baki
          wrote on last edited by
          #4

          This is the DataGridView (see subject). It's been a while since I used grids and I wasn't too familiar with this one. Problem solved though.

          1 Reply Last reply
          0
          • P Paul Conrad

            How did you fix it?

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            B Offline
            B Offline
            Bassam Abdul Baki
            wrote on last edited by
            #5

            Just have to make sure to delete only one direction if it's the last one, since you're basically deleting the matrix. That's annoying though.

            1 Reply Last reply
            0
            • B Bassam Abdul Baki

              Just spent a good 5 minutes trying to figure out what the heck is wrong with my program's logic. I have a symmetric matrix that I'm deleting rows and columns of (same index) in a certain order. All's well except the last one. When you delete the last row or column (deleting the matrix), it sort of deletes the remaining column or row. D'oh!


              Web - Blog - RSS - Math - BM

              M Offline
              M Offline
              Megidolaon
              wrote on last edited by
              #6

              5...minutes? Seriously, most of us brood an hour or two over or programs before we see what'as wrong. 5 minutes is not worth mentioning.

              1 Reply Last reply
              0
              • B Bassam Abdul Baki

                Just spent a good 5 minutes trying to figure out what the heck is wrong with my program's logic. I have a symmetric matrix that I'm deleting rows and columns of (same index) in a certain order. All's well except the last one. When you delete the last row or column (deleting the matrix), it sort of deletes the remaining column or row. D'oh!


                Web - Blog - RSS - Math - BM

                M Offline
                M Offline
                Megidolaon
                wrote on last edited by
                #7

                5...minutes? Seriously, most of us brood an hour or two over or programs before we see what's wrong. 5 minutes is not worth mentioning.

                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