color row in datagrid

I would like to specify the backcolor of a row based on a value of one of its columns if in column1 the value is 1 then color blue else color to default i have tried 5.65 sample but using this sample I loose the column format of my date columns.

Loader.
Up arrow icon