subgrid

hi,



Do i need to only formate XML and set event —> mygrid.setColTypes(“sub_row_grid,ed,ed,ed,ed,ed,ed,ed,ed”);



below is my coe and XML. Please make my code correct and plz plz help, its urgent.





-----------------------------------------------------------CODE--------------------------------------------------------------------------------------------



<%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“Default2.aspx.cs” Inherits=“Default2” %>

























<%– --%>











    

    























    





    

    <%– --%>













    

Add Row

Remove Row













-----------------------------------------------------------XML--------------------------------------------------------------------------------------------





<?xml version="1.0" encoding="UTF-8"?>



    

        -1500

        A Time to Kill

        John Grisham

        12.99

        1

        24

        0

        05/01/1998

allow



hero

yes



    

    

        1000

        Blood and Smoke

        Stephen King

        0

        1

        24

        0

        01/01/2000

allow



hero

yes



    

    

        -200

        The Rainmaker

        John Grisham

        7.99

        0

        48

        0

        12/01/2001

    

    

        350

        The Green Mile

        Stephen King

        11.10

        1

        24

        0

        01/01/1992

    

    

        700

        Misery

        Stephen King

        7.70

        0

        na

        0

        01/01/2003

    

    

        -1200

        The Dark Half

        Stephen King

        0

        0

        48

        0

        10/30/1999

    

    

        1500

        The Partner

        John Grisham

        12.99

        1

        48

        1

        01/01/2005

    

    

        500

        It

        Stephen King

        9.70

        0

        na

        0

        10/15/2001

    

    

        400

        Cousin Bette

        Honore de Balzac

        0

        1

        1

        0

        12/01/1991

    

    

        -100

        Boris Godunov

        Alexandr Pushkin

        7.15

        1

        1

        0

        01/01/1999

    

    

        -150

        Alice in Wonderland

        Lewis Carroll

        4.15

        1

        1

        0

        01/01/1999

    



-1500

A Time to Kill

John Grisham

12.99

1

24

0

05/01/1998



hero

yes







1000

Blood and Smoke

Stephen King

0

1

24

0

01/01/2000



hero

yes







-200

The Rainmaker

John Grisham

7.99

0

48

0

12/01/2001





350

The Green Mile

Stephen King

11.10

1

24

0

01/01/1992





700

Misery

Stephen King

7.70

0

na

0

01/01/2003





-1200

The Dark Half

Stephen King

0

0

48

0

10/30/1999





1500

The Partner

John Grisham

12.99

1

48

1

01/01/2005





500

It

Stephen King

9.70

0

na

0

10/15/2001





400

Cousin Bette

Honore de Balzac

0

1

1

0

12/01/1991





-100

Boris Godunov

Alexandr Pushkin

7.15

1

1

0

01/01/1999





-150

Alice in Wonderland

Lewis Carroll

4.15

1

1

0

01/01/1999









:frowning:

please help me

To use sub grid first cell’s value should be path to the sub grid xml file. If you have pro version you can find sub grid example at the dhtmlxGrid package dhtmlxGrid\samples\extended_modes\pro_subgrids.html