How to fix PHP Fatal error: Class 'C_DataGrid' not found

For commercial licenses:

You can either comment out the first line

  // use phpGrid\C_DataGrid;

  — OR —

  Add a global namespace symbol — single backslash — BEFORE the constructor

$dg = new \C_DataGrid(“SELECT * FROM orders”, “orderNumber”, “orders”);

For Basic edition

The namespace is NOT required. The following should work.

$dg = new C_DataGrid(“SELECT * FROM orders”, “orderNumber”, “orders”);

Feedback and Knowledge Base