BeanShell Formatter allows you to write custom Java code to transform values on the datalist column.
Script in Java.
See BeanShell Programming Guide - Datalist Formatter.