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. DataGridBoolColumn Question

DataGridBoolColumn Question

Scheduled Pinned Locked Moved C#
debuggingquestion
6 Posts 2 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.
  • L Offline
    L Offline
    lior654 hotmail com
    wrote on last edited by
    #1

    I'm looking for a way to trace changes in the status of DataGridBoolColumn. (Checked, Unchecked...)

    R 1 Reply Last reply
    0
    • L lior654 hotmail com

      I'm looking for a way to trace changes in the status of DataGridBoolColumn. (Checked, Unchecked...)

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Hi, that's a bit tricky as it is hidden within the class. You could probably do it with reflection but I would recommend taking Reflector, decompiling the whole class and extending the ToggleValue function with a custom event.

      L 1 Reply Last reply
      0
      • R Robert Rohde

        Hi, that's a bit tricky as it is hidden within the class. You could probably do it with reflection but I would recommend taking Reflector, decompiling the whole class and extending the ToggleValue function with a custom event.

        L Offline
        L Offline
        lior654 hotmail com
        wrote on last edited by
        #3

        Can you be a bit more specific? Maybe even direct me to an example how to do such a thing? I have experiance in writing custom controls but I'm not sure that event I need to catch.

        R 1 Reply Last reply
        0
        • L lior654 hotmail com

          Can you be a bit more specific? Maybe even direct me to an example how to do such a thing? I have experiance in writing custom controls but I'm not sure that event I need to catch.

          R Offline
          R Offline
          Robert Rohde
          wrote on last edited by
          #4

          The problem is that you can't modifiy the existing one directly because the needed functions are either internal or protected. Instead of modifying it you could decompile the whole class (you can do this with for example Lutz Röders Reflector) and modify it. You would then have to change the function ToggleValue with some event or whatever suits you best. When you are finished you would have to add your custom column style instead of the standard one to your grid. Clear enough?

          L 1 Reply Last reply
          0
          • R Robert Rohde

            The problem is that you can't modifiy the existing one directly because the needed functions are either internal or protected. Instead of modifying it you could decompile the whole class (you can do this with for example Lutz Röders Reflector) and modify it. You would then have to change the function ToggleValue with some event or whatever suits you best. When you are finished you would have to add your custom column style instead of the standard one to your grid. Clear enough?

            L Offline
            L Offline
            lior654 hotmail com
            wrote on last edited by
            #5

            Not really. I'm sure there is a much simple solution to this not to complicated problem. I'll continue look for it.

            R 1 Reply Last reply
            0
            • L lior654 hotmail com

              Not really. I'm sure there is a much simple solution to this not to complicated problem. I'll continue look for it.

              R Offline
              R Offline
              Robert Rohde
              wrote on last edited by
              #6

              Good luck then. :)

              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