Use the OnDrawColumnCell event when programming Delphi
How to use the OnDrawColumnCell event when programming Delphi This Delphi tutorial looks at how to take advantage of the OnDrawColumnCell event on the TDBGrid component. In particular it examines how to make every second row a different colour (Sky Blue) and how to change the appearance of the text depending on the data.