title: How to change GridView column size in YII?
body: <p>Im trying change my GridView column width. This is my code:</p>
  
  <pre><code>&lt;?php $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id' =&gt; 'prefixs-grid',
      'dataProvider' =&gt; $model-&gt;search(),
      'filter' =&gt; $model,
      'columns' =&gt; array(
          array(
              'name' =&gt; 'id',
              'header' =&gt; 'No.',
              'htmlOptions' =&gt; array('class' =&gt; 'center'),
          ),
          array(
              'name' =&gt; 'pfx',
              'htmlOptions' =&gt; array('width' =&gt; 30),
          ),
          array(
              'class' =&gt; 'CButtonColumn',
          ),
      ),
  )); ?&gt;
  </code></pre>
  
  <p>When i run 'pfx' columns width must be changed to 30, but width is same. How i can change width of column? Any ideas?</p>