A / \ B C / \ / \ D E F G / \ / \ / \ / \ H I J K N O .... .... .... ... .... .... .... ... Output: Left gridview of member A: 1| B |joining date| 2| D |joining date| 3| E |joining date| 4| H |joining date| 5| I |joining date| 6| J |joining date| 7| K |joining date| Right gridview of member A: 1| C |joining date| 2| F |joining date| 3| G |joining date| 4| N |joining date| 5| O |joining date| Note: All left members of A must be in left and all right members must be in right. datatable schema is id SponsorId joining-date placement B A 21-3-2015 Left C A 21-3-2015 Right D B 21-3-2015 Left E B 21-3-2015 Left F C 21-3-2015 Left G C 21-3-2015 Left and similar for all.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)