Introduction

In most of the interviews while going in the machine test round companies are asking to do this task and many freshers are failing to complete this task. So, I thought to write this article to help them.

Let us create a treeview which will show all the projects and their modules. Now we will finish this task in step by step...

Step 1: Firstly, we will design our database,

Now enter some sample data within table “Project” like the following:

Project

Table: Module

Module

Step 2: Let us prepare our solution,

Step 3:

Step 4:

Step 5:

Step 6:

Step 7:

Step 8: