You can change columns visibility and order



Displaying 91-100 of 100 result(s).
NameAgeLogin Date  
Dickson, Britanney E.292012-03-26View Update Delete
Wolf, Bethany J.442012-03-26View Update Delete
Branch, Abdul Q.402012-03-26View Update Delete
Blackburn, Rhona C.242012-03-26View Update Delete
Frederick, Colette N.312012-03-26View Update Delete
May, Lance L.162012-03-26View Update Delete
Emerson, Sara W.332012-03-26View Update Delete
Mckenzie, Desirae Z.352012-03-26View Update Delete
Munoz, Madeline W.202012-03-26View Update Delete
Dorsey, Susan J.622012-03-26View Update Delete
View:
<div style="width: 30%">
<?php 
    $eColumns = $this->widget('ext.ecolumns.EColumns', array(
        'gridId'  => 'grid1',
        'storage' => 'session', //where to store settings: 'db', 'session', 'cookie'
        'model' => $dataProvider->model, 
        'columns' => array(
           'name',
           'age',
            array(
              'name' => 'login_date',
              'header' => 'Login Date',
            ), 
            array(
              'class'=>'CLinkColumn',
              'visible' => false, //not visible by default, but can be toggled later
            ),
            array(
             'class'=>'CButtonColumn',
            ),
            array(
             'class'=>'CCheckBoxColumn',
            ),        
        ),
   ));
?>
</div>

<?php
    $this->widget('zii.widgets.grid.CGridView', array(
       'id' => 'grid1',
       'dataProvider' => $dataProvider,
       'columns' => $eColumns->columns()
    ));
?>