views:

9

answers:

0

For a Chart of Account, has the following structure,

ID  AccountName    ParentID
1   Income         - 
2   Expense        -
3   Assets         -
4   Liabilities    -
5   Current Assets 3
6   Fixed Assest   3
7   Cars           6
8   Treasury       7
9   Banks          8
10  National Bank  9
11  Customers      5
12  Ahmed          11
13  Capital        4

So, any account may have one or more child account(s).
That structure is represented in datatable.

I just looking for the fastest/best optimized way to bind that structure to a treeview?