Capture a background color and font color of the line in DBGrid
I have a functionality in the DBGrid when selecting a row and press a key this changes the background color and font color of the row has ben selected. The validation i need to apply is if pressing the key actually occurs this color change. I have done some tests with the property ".Canvas.Font.Color", however it is not changing this property at runtime, it always returns the same color. However in debug the execution some times it changes, has anyone done any such validation or have any ideia how i do that?
Next thing to try... just as a test... what happens if, before you do the check for color, you put in a delay call... delay like 2000 milliseconds (2 seconds) and see what happens? Could this be a timing issue where there is a time delay JUST enough that the validation is happening before the properties are updated?