ListBox Recursive Grouping
Hello,
I have data in a Sql Server database that i have to load
in a listbox control.This is done, but now i was asked to group these
data as data shown in a Gantt Diagram
This the structure of my
table
CodeDossier--------CodeParent(Parent
Code)--------Niveau(Level)--------Libellé(Label)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
A------------------------Null-----------------------------------1------------------------Label
1--------
A01----------------------A-------------------------------------2------------------------Label
2--------
A02----------------------A-------------------------------------2------------------------Label
3--------
A021-------------------A02-----------------------------------3------------------------Label
31--------
A022-------------------A02-----------------------------------3------------------------Label
32--------
B------------------------Null-----------------------------------1------------------------Label
4--------
B01---------------------B--------------------------------------2------------------------Label
5--------
B02---------------------B--------------------------------------2------------------------Label
6--------
B03---------------------B--------------------------------------2------------------------Label
7--------
C-----------------------Null------------------------------------1------------------------Label
8--------
C01---------------------C--------------------------------------2------------------------Label
9--------
and i have to present these data in the
listbox like this:
CodeDossier Lib
+A
Label 1 (4)
-A01 Label 2
+A02 Label 3
-A021
Label 31
-A022 Label
32
+B Label 4
+B01
Label 5
+B02 Label 6
+B03 Label 7
+C
+C01 Label 8
i spent three days on it but unfortunately i
could'nt find solution for it.my director want that i do it in xaml.
Hope that someone could help me. Thank