set gridview widget each column width

Hi All,

If I have more than 10 fields in gridView widget, how to set a column width?




[

   'attribute' => 'agen_name',

   'headerOptions' => ['style' => 'width:500px']

],



I used the above code n make no difference.

Please advice. thanks.