Convert Row Style to a Function