I am using a grid where I using a select command and not specifying the columns in the code
The grid displays find, however any field with ‘Id’ in fieldname gets automatically narrow. Can you please help
$g->select_command = “SELECT * FROM myTable”;
You can override that particular column width by following. You don’t need to define all columns when setting set_columns second param to true..
$cols = array(); $col = array(); $col["name"] = "id"; $col["width"] = "150"; $cols = $col; $g->set_columns($cols,true);
Abu Ghufran - Dev Team
Grid 4 PHP Framework
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?