Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1210
Hierarchical view on WinGrid
posted
Hi, I want to create an hierarchical Grid in which there is a root item (a task for example, which also has some properties which should be displayed in columns), each root item has children from different kind, let them be called "Jobs" for the simplicity of my explanation . Each Job can then has "Child Jobs" as well, and so on and on… (recursively).Each Job item also has its own properties that should be displayed in a multi-column table as well.The relation between each root item to a child item depends on fields in the DB.I wanted to know:1. Is this structure possible with Infragistics WinGrid, or should I use WinTree; we rather have the WinGrid for all it sorting/filtering/summing options2. Is it possible to create a scheme that will bind to create this automatically without having to manually build this tree with code?3. Where can I find references/help on how to do this.My department is very new with Infragistics, so far we were working with devexpress and we really want to use you controls.Please help.Thanx, -Gilad

 

Parents
  • 469350
    Offline posted

    gbenshim said:
    each root item has children from different kind

     

    I'm not entirely clear on what you mean by this. If you mean that each parent row has child rows with different columns, then the answer to your first question is no, the grid cannot handle this. The grid can only deal with a homogeneous data source where all rows in the same band have the same column structure. 

    If you have a limited number of types of child bands, then perhaps you could add bands for all of them and then simply have no rows where none are needed. But that's a design decision and depends on how many different job schemas you have and what your priorities are. 

    The tree can handle non-homogenous data sources.  But as you know, it does not have filtering or summaries. The tree does have sorting, though.

     

    gbenshim said:
    2. Is it possible to create a scheme that will bind to create this automatically without having to manually build this tree with code?

    I beleive the tree will pick this up automatically, providing that every node in the same collection (not neccessarily the same band, but the same island) has the same schema. 

     

    gbenshim said:
    3. Where can I find references/help on how to do this

    There are samples of binding the tree as well as documentation in the help regarding Columns and ColumnSets. It's hard to give you any more specifics without more specific questions. But if you simply set up your data source with the structure you want, it sounds to me like the tree will pick iy up automatically.

Reply Children