Build grid in hierarchy via dataset ( from XML)

2 posts, 0 answers
  1. ankool
    ankool avatar
    50 posts
    Member since:
    Apr 2007

    Posted 17 Jun 2008 Link to this post


    In case of simple grids, I am using an XML to build a datatable and then a dataset. Then i use this dataset as radGrid datasource and call radGrid.DataBind().

    But now instead of simple grid, a hierarichal grid is required. How should i use my dataset (or XML) to create this grid ?

    I have tried several methods such as,

    1.  Using a dataset as datasource and dataset is having two datatables, one for mastertable and other for detail table. Then a relation is build between datatables and added to dataset.
    2. Using two xmldatasource, and assigning then to mastertable and detail table. During load data property of both xmldatasource is updated with required xml.

    Is there any way of loading hierarichal grid using dataset? Also, in this particual grid its a two level hierarchy.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Jun 2008 Link to this post

    Hi Ankool,

    Go through the following forum link which discuss a similar scenario.
    Hiuerchical view using XML Datasource???

Back to Top