Using custom code in datagrid component

You can define template for desired column:

Check this thread for more info about the same in JavaScript: