Conditional statements in HTML Template

Is it possible to include conditional statements in the HTML Template on a DBADVGrid?

 I would like to be able to altcolouring and formating of parts of the data dependent upon data values.

The HTML itself cannot have conditional statements but

1) you could use calculated DB fields to make some data condition
2) you could implement OnGetHTMLTemplate to create a HTML template dynamically based on specific data

Does OnGetHTML template get called for each row? if so I could alter it dynamically.