Howdy,
To begin, I'm using Delphi 7, Absolute DB & NextGrid6 (in process of upgrading from Next Suite 5 - to - 6).
I have a NextDBGrid6 in which I wish to have selective row coloring. Basically, I wish to have a row displayed
in a certain color (red) based on a row's data value, otherwise I'd like to have all rows displayed in an alternating
light & dark color. The desired order of priority for a row's color would be:
- if selected, use standard selection color (default is blue, I believe)
- if not selected & a data condition is present, use desired color (red)
- if not selected & data condition is not present, display rows is alternating light & dark colors
I'm attempting to implement the above via the grid's view using the view's OnGetCellColor event.
The initial display for all rows I'm receiving is the middle condition mentioned above (all rows in red).
For ref, I had the above logic operating with ver. 5 (NextDBGrid) via use of the grid's OnCellColoring event.
I've attached a screen shot with both the code used in the view's OnGetCellColor event, the app's results
and an alt. view.
Any ideas \ thoughts \ corrections on how I can alter the OnGetCellColor event logic to correct this prob?
Or should I be using some other event (either in the dbgrid or it's view)?
Thanks,
For ref, I had the above logic operating with ver. 5 (NextDBGrid) via use of the grid's OnCellColoring event.