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. How to detect when a DataGridViewCell's value has changed

How to detect when a DataGridViewCell's value has changed

Scheduled Pinned Locked Moved C#
linuxtutorial
5 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.
  • J Offline
    J Offline
    Jordanwb
    wrote on last edited by
    #1

    I'm making a Music Library and I'm using the DataGridView class to hold the songs. Each song used TagLib# to change it's attributes (Title, Artist, etc). Each song (the class), extends DataGridViewRow. The song class has a DataGridViewTextBoxCell for the main attributes. I want it to when the value of the text box is changes, an event is fired and the attribute is updated. But I can find the proper event in the DataGridViewTextBoxCell or DataGridViewRow instances. I found that DataGridViewRow has a private method titled "RaiseCellValueChanged", but I can't find the associated event. BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.

    P L 2 Replies Last reply
    0
    • J Jordanwb

      I'm making a Music Library and I'm using the DataGridView class to hold the songs. Each song used TagLib# to change it's attributes (Title, Artist, etc). Each song (the class), extends DataGridViewRow. The song class has a DataGridViewTextBoxCell for the main attributes. I want it to when the value of the text box is changes, an event is fired and the attribute is updated. But I can find the proper event in the DataGridViewTextBoxCell or DataGridViewRow instances. I found that DataGridViewRow has a private method titled "RaiseCellValueChanged", but I can't find the associated event. BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.

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

      Jordanwb wrote:

      BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.

      Strange. I sometimes post for *nix with no problem at all. Used both Firefox and Konqueror...

      "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

      J 1 Reply Last reply
      0
      • J Jordanwb

        I'm making a Music Library and I'm using the DataGridView class to hold the songs. Each song used TagLib# to change it's attributes (Title, Artist, etc). Each song (the class), extends DataGridViewRow. The song class has a DataGridViewTextBoxCell for the main attributes. I want it to when the value of the text box is changes, an event is fired and the attribute is updated. But I can find the proper event in the DataGridViewTextBoxCell or DataGridViewRow instances. I found that DataGridViewRow has a private method titled "RaiseCellValueChanged", but I can't find the associated event. BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, there is a DataGridView.CellValueChanged event. Doesn't that suit your purposes? :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Voting for dummies? No thanks. X|


        J 1 Reply Last reply
        0
        • L Luc Pattyn

          Hi, there is a DataGridView.CellValueChanged event. Doesn't that suit your purposes? :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Voting for dummies? No thanks. X|


          J Offline
          J Offline
          Jordanwb
          wrote on last edited by
          #4

          Yes it does. I never checked there because I was expecting the event to exist in the Row or the Cell.

          1 Reply Last reply
          0
          • P Paul Conrad

            Jordanwb wrote:

            BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.

            Strange. I sometimes post for *nix with no problem at all. Used both Firefox and Konqueror...

            "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

            J Offline
            J Offline
            Jordanwb
            wrote on last edited by
            #5

            Hmm strange too because I had no problem posting this in Kubuntu. :^)

            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