Link Details

Link 1147945 thumbnail
User 966065 avatar

By parash
Submitted: Apr 30 2014 / 23:15

Recursion can be a bit tricky to master, however comes handy in many situations. One very common and popular use is to build treeview structure. Here is a very simple approach of building a treeivew recursively in C#. Before we jump into recursion we need to realize the specific style to store the data, here is the sample I have used. It uses a "ParentID" to determine whose child it is and this makes it possible to build a tree view to "n" levels of depth.
  • 2
  • 0
  • 156
  • 16

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java