TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mouss mouss
NA
5
0
ListBox Recursive Grouping
Jul 6 2010 10:38 AM
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
Reply
Answers (
1
)
query form validation and mail
Less repetitive way to use datatables