You can now use set_col_frozen method to set column freeze method. It’s useful when working with a big table with many columns. The freezing column must start from the very left and then one by one to the right.
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg->set_dimension(600, 400, false);
$dg -> display();
Note that it is recommended to set text not to wrap with CSS “nowrap”. See http://phpgrid.uservoice.com/knowledgebase/articles/154972