DataGridBoolColumn Question
-
I'm looking for a way to trace changes in the status of DataGridBoolColumn. (Checked, Unchecked...)
-
I'm looking for a way to trace changes in the status of DataGridBoolColumn. (Checked, Unchecked...)
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.
-
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.
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.
-
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.
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?
-
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?
Not really. I'm sure there is a much simple solution to this not to complicated problem. I'll continue look for it.
-
Not really. I'm sure there is a much simple solution to this not to complicated problem. I'll continue look for it.
Good luck then. :)