877-GRID-666 24/7 online support 604, Tower A, New Trade Plaza, N.T., Hong Kong

One Table, Multiple Datagrids

You can certain have more than one datagrid instances from the same database table. Just make sure to give each unique name using set_jq_gridName() method.

1
2
3
4
5
6
7
8
9
$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg -> enable_edit();
$dg -> display();

$dg2 = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg2 -> set_jq_gridName('order2');
$dg2 -> set_caption("order 2");
$dg2 -> enable_edit();
$dg2 -> display();

See Live Example! (scroll to the right view the 2nd grid)