Grid change field alignment based on value?

I’m looking for a way to change in onrecord event the text alignment in a grid field based on a value in that record. The sc_field_style macro doesn’t handle text alignment.

Any ideas welcome.