Row styling based on data attribute

Hi,

I am wondering what is the best way to thange row style ( ex : background red) for some rows, depending of an attribute of the data represented by the row...
The typical use case will be to differentiate saved data to data to delete and data to save (ex : data to be deleted with red background, data to save with blue foreground, data to update with italic)