Click here to Skip to main content
15,920,603 members
Home / Discussions / C#
   

C#

 
Generalpadding a number's string representation Pin
matthias s.3-Sep-04 6:26
matthias s.3-Sep-04 6:26 
GeneralRe: padding a number's string representation Pin
Heath Stewart3-Sep-04 6:36
protectorHeath Stewart3-Sep-04 6:36 
GeneralRe: padding a number's string representation Pin
Not Active3-Sep-04 6:37
mentorNot Active3-Sep-04 6:37 
GeneralRe: padding a number's string representation Pin
Heath Stewart3-Sep-04 6:38
protectorHeath Stewart3-Sep-04 6:38 
GeneralRe: padding a number's string representation Pin
Not Active3-Sep-04 7:01
mentorNot Active3-Sep-04 7:01 
QuestionHow would you attack this? Pin
Adam °Wimsatt3-Sep-04 6:06
Adam °Wimsatt3-Sep-04 6:06 
AnswerRe: How would you attack this? Pin
Heath Stewart3-Sep-04 6:43
protectorHeath Stewart3-Sep-04 6:43 
AnswerRe: How would you attack this? Pin
Marc Clifton3-Sep-04 9:51
mvaMarc Clifton3-Sep-04 9:51 
Adam Wimsatt wrote:
My coder sensors sense a recursive routine, but I'm wondering if there is some other solution hanging out there I haven't thought of.

I don't see this as recursive. Rather, I would walk the list in two passes.

Pass 1: Create nodes
Pass 2: wire-up child/parent relationships

I'd probably maintain a Hashtable keyed with the ID to easily locate the parent node.

Once the tree structure is built, you can put it into a view, like a TreeList. This kind of stuff is perfect for an MVC pattern--the Controller can manage getting the data out of the database, the Model can manage the internal tree management, and the View can handle constructing a TreeList or other visual representation.

Well, that's my 2c.

Marc



MyXaml
Advanced Unit Testing
GeneralSetting a stylesheet in AxWebBrowser control Pin
cheesepirate3-Sep-04 3:48
cheesepirate3-Sep-04 3:48 
GeneralRe: Setting a stylesheet in AxWebBrowser control Pin
Nick Parker3-Sep-04 4:51
protectorNick Parker3-Sep-04 4:51 
GeneralRe: Setting a stylesheet in AxWebBrowser control Pin
cheesepirate3-Sep-04 5:17
cheesepirate3-Sep-04 5:17 
GeneralRe: Setting a stylesheet in AxWebBrowser control Pin
Heath Stewart3-Sep-04 6:46
protectorHeath Stewart3-Sep-04 6:46 
GeneralRe: Setting a stylesheet in AxWebBrowser control Pin
Nick Parker3-Sep-04 7:07
protectorNick Parker3-Sep-04 7:07 
GeneralSmtpMail timeout Pin
hkulten3-Sep-04 3:25
hkulten3-Sep-04 3:25 
QuestionHow to create a dynamic component to include multiple text sections and buttons? Pin
Liquidian3-Sep-04 3:15
Liquidian3-Sep-04 3:15 
AnswerRe: How to create a dynamic component to include multiple text sections and buttons? Pin
Heath Stewart3-Sep-04 6:53
protectorHeath Stewart3-Sep-04 6:53 
GeneralSet method of Expandable property not getting called Pin
pradeep_pc3-Sep-04 2:26
pradeep_pc3-Sep-04 2:26 
GeneralRe: Set method of Expandable property not getting called Pin
Heath Stewart3-Sep-04 6:58
protectorHeath Stewart3-Sep-04 6:58 
GeneralRe: Set method of Expandable property not getting called Pin
Anonymous3-Sep-04 19:44
Anonymous3-Sep-04 19:44 
GeneralDataGrid Cell Color - C# Pin
Jo Develper3-Sep-04 2:15
Jo Develper3-Sep-04 2:15 
GeneralRe: DataGrid Cell Color - C# Pin
sreejith ss nair3-Sep-04 2:37
sreejith ss nair3-Sep-04 2:37 
GeneralRe: DataGrid Cell Color - C# Pin
Jo Develper3-Sep-04 5:17
Jo Develper3-Sep-04 5:17 
GeneralRe: DataGrid Cell Color - C# Pin
Not Active3-Sep-04 5:43
mentorNot Active3-Sep-04 5:43 
GeneralRe: DataGrid Cell Color - C# Pin
Jo Develper5-Sep-04 23:16
Jo Develper5-Sep-04 23:16 
Questioncan not return com from c# Pin
umedkurd3-Sep-04 2:11
umedkurd3-Sep-04 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.