Sample: dhtmlxGridGrid with subgriddhtmlxGrid main page
X

You can set subrow and subgrid ("sub_row_grid" excell) for the grid cell.
Subrow's data can be set in xml ("sub_row" excell) or loaded from other file by ajax ("sub_row_ajax" excell).
Just try to open cell

 
mygrid.setColTypes("sub_row,edtxt,ed,price,ch,co,ra,ro");
 
--------------------------XML---------------------------
<?xml version="1.0"?>
<rows>
    <row id="1">
        <cell type="sub_row_ajax">data.txt</cell>
        <cell>Loaded by ajax</cell>
        ...
    </row>
    <row id="2">
        <cell type="sub_row_grid">sub.xml</cell>
        <cell >Sub grid 1</cell>
        ...
    </row>
    <row id="3" >
        <cell type="sub_row_grid">sub.xml</cell>
        <cell>Sub grid 2</cell>
        ...
    </row>
    <row id="4">
        <cell>350</cell>
        <cell>The Green Mile</cell>
        ...
    </row>
THIS PAGE CONTAINS SAMPLE FUNCTIONALITY OF PROFESSIONAL EDITION FOR DEMONSTRATION PURPOSE ONLY.
UNAUTHORIZED USE IS PROHIBITED. PLEASE CONTACT SALES@DHTMLX.COM TO OBTAIN A LEGAL COPY OF PROFESSIONAL EDITION.