I’ve following data table structure –
User ID | User Name | Manager ID
-------------------------------------
1 | ABD | 2
2 | BCD | NULL
3 | KUM | 4
4 | POC | NULL
5 | OJM | 2
In the above table User ID – 2 is the manager of User ID – 1,5 similarly User ID – 4 is the manager of User Id – 3.
How to create self relationship to show hierarchical details of Manager -> Users?
You have to add nested relation for DataTable as below example –
Hope this helps.