Datatable header width

how can I set the the columns width to consider both header’s contents width and cell’s contents width?

you see that there is too much space for the last column, and it seems just caring for the content’s width and not header’s width!

I also tried:
‘whiteSpace’: ‘normal’,
‘height’: ‘auto’,
but problem still remained.