I suspect you mean columns instead of rows, right? Maybe looking at the source of the color field formatter can give you an inspiration for your plugin. I don't think that formatting one field depending on the value of another is easily implementable right now though.