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 1 year 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 1 year 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
Grid 4 PHP Framework
 
Your Answer

19 + 5 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?