title: Yii CGridView column value , achieved from model
body: <p>I wanna make some CGridView table in a view. And one column should contain DropDown list. Main problem is, that this dropdown list must be generated by model.</p>
  
  <p>So, in my view i made it like this:</p>
  
  <pre><code>$this-&gt;widget('zii.widgets.grid.CGridView', array(
                  'dataProvider'=&gt;$orders-&gt;search(),
                  'filter' =&gt; $orders,
                  'columns' =&gt; array(
                      array(
                          'name' =&gt; 'actions',
                          'header' =&gt; 'Actions',
                          'value' =&gt; '$data-&gt;actions',
                          'filter' =&gt; false,
  
  
      ),
  ));
  </code></pre>
  
  <p>And in Order model:</p>
  
  <pre><code>public function getActions() {
      return CHtml::dropDownList('status', $this-&gt;status-&gt;id,  CHtml::listData(Status::model()-&gt;findAll(), 'id', 'title'));
  }
  </code></pre>
  
  <p>And i getting pretty nice column value with code of this dropdown list, but all special chracters encoded to lt; quot; gt; etc. Just string, not html element.</p>
  
  <p>So, how to get real html dropdown list?</p>
  
  <p>[SOLVED]
  just adding 'type' => 'raw' for this column solved all this problems</p>