Hi Monharam!
It´s easy to understand:
1- The application has "night/day" themes in its configuration and once user choose one, we set everything accordingly.
2- The grid does not work on a database - it's fulfiled with random-and-realtime data of processing files during one of its functions. In other words, my grid starts "empty".
3- In the form load event, we set the colors of the UI accordingly the current there. But, since all windows are "thread-safe", user can open and change the theme configuration at any time - even with this specific grid windows already opened. Because of this, a function is called everytime user changes themes (night/day) and set the grid colors using the code I sent to you.
4- Why RowEvent? Because due to an evetual ERROR in any file, I try to call the user's attention to the specific file/row, changing its color do "yellow on red".
Really, I don't know exactly why I do change only some columns and other don't - maybe I have had problems during some specific processing of colors in some point of the program (it has several months). It explains why DETAILS column change its color on RowEvent (it is NOT set neither at the LOAD event nor in the mentioned function above) and the others, don't.
In fact, I need only:
1- set the grid colors and font colors due to specific themes of the application, anytime, even with the grid empty or filled.
2- set the color of an specific line (or its columns) whenever an error is raised on any file, described into that specific line.
Thank you very much for the whole attention.
Kindest regards,
David