Convert a HTML table to DataGrid

Tutorial » Convert a HTML table to DataGrid

This example demostrates how we can convert a table into datagrid.

The datagrid columns is defined in <thead> markup and data is defined in <tbody> markup. Make sure to set a field name for every data column, see below example:

Sure, you can defines a complex table header such as:

Now you can see the complex header table is created.

Download the EasyUI example:

easyui-datagrid-demo.zip