I use the OnDrawColumnCell method to draw a DBGrid in a custom way. The question is how can I determine if the cell that is being redrawn shows the field of a currect record in the datatable, as in that case I want it to be highlighted with a different color.
Ok, I can do it by comparing the column text and currect record corresponding field text, like for instance:
[code]if (Column = DBGrid.Columns) and (Column.Field.Text = NotebookT.Fields.AsString) then ...[/code]
But in that case I'll have to have a separate check for each column to have the whole row highlighted. Is there an easier way?
Thanks for your help.