asp.net mvc - How to grouping for the following structure in MVC5? -


here table :

**name childid parentid**   root    1        0  child1  2        1  child2  3        1  child3  4        2  child4  5        1  child5  6        2 

but want format :

 **name childid parentid**     root    1        0  child1  2        1  child2  5        2  child5  6        2  child2  3        1  child4  4        1 

simply asking how parent related child down??

give me mvc5 controller code that. use orderby , sorting not working ? give me structure using foreach.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -