You will need to target the class column-container in your css.
.datagrid-wrapheader {
.table-content{
.column-container{
white-space: normal;
}
}
}
This will lead to all your headers wrapping at white spaces: