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 ??
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, CAnd the displayed grid is :A --> A1 --> A11A1-->A11A11BC
And What I would is of course:A-->A1-->A11BC
Check out the WinGrid Performance Guide. Especially the section 4 - Recursion.