Click here to Skip to main content
15,894,460 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting Image to Object Pin
sindhutiwari23-Oct-07 2:30
sindhutiwari23-Oct-07 2:30 
GeneralRe: Converting Image to Object Pin
Pete O'Hanlon23-Oct-07 2:34
mvePete O'Hanlon23-Oct-07 2:34 
GeneralRe: Converting Image to Object Pin
sindhutiwari23-Oct-07 2:50
sindhutiwari23-Oct-07 2:50 
QuestionOutlook add in is not loading in client machine Pin
pritesh_patel23-Oct-07 1:28
pritesh_patel23-Oct-07 1:28 
Questiontreeview nodes from sql server Pin
NewToAspDotNet23-Oct-07 0:34
NewToAspDotNet23-Oct-07 0:34 
AnswerRe: treeview nodes from sql server Pin
pmarfleet23-Oct-07 1:08
pmarfleet23-Oct-07 1:08 
GeneralRe: treeview nodes from sql server Pin
NewToAspDotNet23-Oct-07 1:54
NewToAspDotNet23-Oct-07 1:54 
GeneralRe: treeview nodes from sql server Pin
pmarfleet23-Oct-07 2:12
pmarfleet23-Oct-07 2:12 
I'm not going to do your (home)work for you. If you want to learn C# or programming as a general discipline, you need to practice solving problems. Since my first post, you haven't demonstrated that you have made any further effort to solve the problem yourself.

I will give you some further pointers though.

1. Fetch your data in a fashion that allows you to easily iterate through i) companies ii) departments within companies
2. When iterating through companies, use a nested loop to iterate through the departments for a company.
3. Retain a reference to each company treenode you add to the tree in an object variable. Add your department nodes as children to each company treenode when iterating through departments for a company.

Paul Marfleet

AnswerRe: treeview nodes from sql server Pin
Pete O'Hanlon23-Oct-07 2:08
mvePete O'Hanlon23-Oct-07 2:08 
GeneralRe: treeview nodes from sql server Pin
NewToAspDotNet23-Oct-07 2:17
NewToAspDotNet23-Oct-07 2:17 
QuestionUsing resource Pin
alexia_teh23-Oct-07 0:03
alexia_teh23-Oct-07 0:03 
AnswerRe: Using resource Pin
kenprog23-Oct-07 15:15
kenprog23-Oct-07 15:15 
QuestionDynamic Textbox controll Pin
pashitech23-Oct-07 0:01
pashitech23-Oct-07 0:01 
AnswerRe: Dynamic Textbox controll Pin
sujithkumarsl23-Oct-07 1:58
sujithkumarsl23-Oct-07 1:58 
QuestionPanel scrolling Pin
blackjack215022-Oct-07 23:58
blackjack215022-Oct-07 23:58 
AnswerRe: Panel scrolling Pin
Harini N K23-Oct-07 0:05
Harini N K23-Oct-07 0:05 
GeneralRe: Panel scrolling Pin
blackjack215023-Oct-07 0:40
blackjack215023-Oct-07 0:40 
GeneralRe: Panel scrolling Pin
Ajay.k_Singh23-Oct-07 1:58
Ajay.k_Singh23-Oct-07 1:58 
GeneralRe: Panel scrolling Pin
blackjack215023-Oct-07 5:16
blackjack215023-Oct-07 5:16 
QuestionRunning Multiple ex's using single object of Process Class Pin
Neeraj Kr22-Oct-07 23:53
Neeraj Kr22-Oct-07 23:53 
QuestionThe case of the disappearing combo box Pin
jozsurf22-Oct-07 23:49
jozsurf22-Oct-07 23:49 
QuestionHow to initialize a nullable array object at runtime? Pin
Spunky Coder22-Oct-07 23:18
Spunky Coder22-Oct-07 23:18 
AnswerRe: How to initialize a nullable array object at runtime? Pin
DavidNohejl22-Oct-07 23:23
DavidNohejl22-Oct-07 23:23 
GeneralRe: How to initialize a nullable array object at runtime? Pin
Spunky Coder22-Oct-07 23:39
Spunky Coder22-Oct-07 23:39 
AnswerRe: Regular Expression in String.Replace() method. Pin
william.zheng22-Oct-07 23:07
william.zheng22-Oct-07 23:07 

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.