Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI DataGrid - Creating Column Groups

jQuery EasyUI DataGrid - Creating Column Groups

The easyui DataGrid can create column groups, as shown below:

In this example, we use flat data to populate the DataGrid, and group the listprice, unitcost, addr1, and status columns under a single column.

To create column groups, you should define the columns data of the datagrid plugin. Each element of columns defines a group of cells that can be combined using the rowspan or colspan properties.

The following code implements the example above:



    

        

            

                

                

                

            

            

                

                

                

                

            

        

    
Item IDProduct IDItem Details
List PriceUnit CostAttributeStauts

Download the jQuery EasyUI example

jeasyui-datagrid-datagrid9.zip