开发者

Display three level hierarchial data display in ASP.NET Web Forms

Th开发者_运维百科e coding is in ASP.NET 3.5.

Here is the scenario.

I am modifying a page that populates some data.

In that page there is a table that displays pages. The pages have sub-pages and these sub-pages again have sub-pages.

So thats three levels of hierarchal data presented.

Example:

Display three level hierarchial data display in ASP.NET Web Forms

Right now its populated using asp:Treeview for easier display of the +(maximise) and -(minimise) images and all.

Is that the best method?

What are the alternatives?

I have some complex calculations and so would like to access all rows, sub-rows and sub-sub-rows easily.


Hierarchical data display can be tricky to do without a hierarchical control, especially if unlimit levels of nesting are needed (potentially, even though most people don't hit the max). TreeView is a good option, or if with finite levels of nesting, nested data bound controls is an option (but treeview would be better).

TreeView allows you to use the value of the node to find by, so that might be your best option. Third-party tree controls are even better, if you have the money.

HTH.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜