本文介绍了如何在树形结构的网格视图中显示数据,如下所述,请在C#中编码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

                                        A
                                    /        \
                                  B            C
                                /    \       /    \
                              D       E     F      G
                             / \     / \   / \    / \
                            H   I    J  K         N  O
                            ....     ....       .... ...
                            ....     ....       .... ...
Output: 
Left gridview of member A:             
1| B |joining date|
2| D |joining date|
3| E |joining date|
4| H |joining date|
5| I |joining date|
6| J |joining date|
7| K |joining date|

Right gridview of member A:             
1| C |joining date|
2| F |joining date|
3| G |joining date|
4| N |joining date|
5| O |joining date|

Note: All left members of A must be in left and all right members must be in right.

datatable schema is

id SponsorId joining-date placement
B    A        21-3-2015    Left
C    A        21-3-2015    Right
D    B        21-3-2015    Left
E    B        21-3-2015    Left
F    C        21-3-2015    Left
G    C        21-3-2015    Left
and similar for all.

推荐答案


这篇关于如何在树形结构的网格视图中显示数据,如下所述,请在C#中编码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 05:04