I tried the following:
Additionally, if your column is a DataGridTemplateColumn instead of a DataGridTextColumn, you can do it like this: