You can change columns visibility and order



Displaying 1-30 of 100 result(s).
NameAgeLogin Date  
Estes, Leandra Q.442012-03-23View Update Delete
Matthews, Melinda Q.202012-03-23View Update Delete
Pierce, Selma S.562012-03-23View Update Delete
Austin, Nina L.642012-03-23View Update Delete
Wise, Hamish W.292012-03-23View Update Delete
Lane, Tanya G.172012-03-23View Update Delete
Reilly, Adrian Q.512012-03-23View Update Delete
Wyatt, Neville A.462012-03-23View Update Delete
Little, Rebecca Y.242012-03-23View Update Delete
Whitehead, Jamal B.562012-03-23View Update Delete
Castillo, Palmer J.282012-03-23View Update Delete
Wyatt, Nola K.412012-03-23View Update Delete
Duke, Myles N.492012-03-23View Update Delete
Rivas, Travis N.162012-03-23View Update Delete
Shepard, Rajah M.482012-03-23View Update Delete
Ortiz, Warren I.702012-03-23View Update Delete
Jacobs, Sean Y.262012-03-23View Update Delete
Hays, Libby U.212012-03-23View Update Delete
Hunt, Ivan P.542012-03-23View Update Delete
Wheeler, Cassidy E.492012-03-23View Update Delete
Warner, Trevor Y.242012-03-23View Update Delete
Weaver, Devin C.462012-03-23View Update Delete
Wolf, Zachary S.472012-03-23View Update Delete
Aguirre, Calvin Q.272012-03-23View Update Delete
Atkins, Jaime B.492012-03-23View Update Delete
Grimes, Juliet V.542012-03-23View Update Delete
Reese, Bradley N.682012-03-24View Update Delete
Clarke, Jessica Y.592012-03-24View Update Delete
Dominguez, Kai M.192012-03-24View Update Delete
Houston, Lionel R.642012-03-24View 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()
    ));
?>