Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: treeview nodes from sql server Pin
Pete O'Hanlon23-Oct-07 2:08
mvePete O'Hanlon23-Oct-07 2:08 
As an example:
foreach (DataRow mydr in Sql.mydt.Rows)
{
  TreeNode parent = new TreeNode(mydr["Dep_comp_name"].ToString());
  // Get the data for the child somehow..
  parent.Nodes.Add(new TreeNode(mychilddr[...].ToString()));
  treeView1.Nodes.Add(parent);
}
This is an inefficient approach, but until you become more proficient it should help you. The important thing is that you will have to get the child rows from the database somehow, and add them to the Nodes collection of the company tree node.

Deja View - the feeling that you've seen this post before.

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 
GeneralRe: Regular Expression in String.Replace() method. Pin
J4amieC22-Oct-07 23:31
J4amieC22-Oct-07 23:31 

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.