for each row should have row number as R1,R2,R3… nad same for column

Questionsfor each row should have row number as R1,R2,R3… nad same for column
Shruti asked 4 months ago

$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
Abu Ghufran Staff answered 4 months ago

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

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

15 + 17 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!