Grid header width dynamically

How i can set the header width dynamically, rather than using width parameter?
I have tried the parameter > gravity=“1”
But couldn’t fix the problem. Any help is really appreciated.

Hi,

grid allows to set only fix width of a column. There is not possibility to define gravity for columns.