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
650
Hierarchical Relation In a table
posted

Hi,

I want to display data from a table such a (ID, ParentID, Description) as a hierarchy. What i did is just create a relation 
ds.Relations.Add("Relation", ds.Tables["MyTable"].Columns["ID"], ds.Tables["MyTable"].Columns["ParentID"], false);

And then use the setdatabinding method.

The result is the freezing of the application on the setdatabinding method.

Am I doing something wrong ??

 

 

 

Parents
No Data
Reply
  • 650
    posted

    OK,

    My dataset was a little bit more complicated... so i reduced it to the simple example above, but the result is not suitable.

    My data are : A, A1(parent = A), A11 (parent = A1), B, C
    And the displayed grid is :
    A --> A1 --> A11
    A1-->A11
    A11
    B
    C

    And What I would is of course:
    A-->A1-->A11
    B
    C

Children