You have to add a DataGridTableStyle to the datagrid, DataGridTextBoxColumn or DataGrodBoolColumn to the TableStyle and then set the format for each column.
Note that when adding a TableStyle, the DataGrid format will be overriden by the TableStyle one