define or hide columns in subgrid

Questionsdefine or hide columns in subgrid
Mario asked 8 years ago

How do I hide or define columns shown in subgridversion. I get all columns, but want to restrict them.

Something like $opt["subgridparams"] = "ida,idb,columx";
does not work

1 Answers
selectcase.biz answered 8 years ago

I have it. Its just :

$grid->select_command = "SELECT ida,idb,columx from table"

Instead of

$grid->select_command = "SELECT * from table"

Your Answer

15 + 1 =

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?