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”;
1 Answers
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);
Your Answer