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