Skip to content

Column Order Position

To change the column position displayed in the datagrid, simply specific the columns in SELECT statement in constructor.

e.g.
$dg = new C_DataGrid("SELECT column_2, column_3, column_1 FROM Table_Name", "ID", "Table_Name");

The datagrid will be displayed as

column 2 | column_3 | column_1


Feedback and Knowledge Base