$col = array();
for($i=1;$i<=10;$i++){
$col[“title”] = “C”.$i;// caption of column
$cols[] = $col;
}
I have done this but showing column title so it should show for rows also
so please help me
1 Answers
Data in rows is fetched either from database query OR from php array. You need to set it there.
Close solution could be excel style row numbers:
$grid[“rownumbers”] = true;
Demo: http://phpgrid.org/demo/demos/appearance/excel-view.php
Code: http://phpgrid.org/demo/demos/appearance/excel-view.phps
Your Answer