Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Horizontal Scroll Bar Pin
zaboboa22-Aug-05 6:17
zaboboa22-Aug-05 6:17 
GeneralRe: Horizontal Scroll Bar Pin
Dan Neely22-Aug-05 7:06
Dan Neely22-Aug-05 7:06 
GeneralRe: Horizontal Scroll Bar Pin
zaboboa22-Aug-05 7:29
zaboboa22-Aug-05 7:29 
GeneralGrading out DataGrid Pin
zaboboa22-Aug-05 3:18
zaboboa22-Aug-05 3:18 
GeneralRe: Grading out DataGrid Pin
miah alom22-Aug-05 4:57
miah alom22-Aug-05 4:57 
Generaltree view question c# Pin
fady_sayegh22-Aug-05 3:13
fady_sayegh22-Aug-05 3:13 
GeneralRe: tree view question c# Pin
miah alom22-Aug-05 5:51
miah alom22-Aug-05 5:51 
GeneralRe: tree view question c# Pin
Robert Rohde22-Aug-05 8:56
Robert Rohde22-Aug-05 8:56 
Lets assume you have all keys in a string array 'keys' and als names in a string array 'names':

HashTable keysToNodesHash = new HashTable();
for (int i = 0; i < keys.Length; i++) {
TreeNodeCollection nodes = treeView1.Nodes;
if (keys[i].Length > 2)
nodes = (TreeNodeCollection)hash[keys[i].SubString(0, keys[i].Length - 2)];
TreeNode newNode = nodes.Add(names[i]);
keysToNodesHash.Add(keys[i], newNodes.Nodes);
}


Haven't tested it but it should give you the basic idea. Note that this will only function properly if the nodes come in the right order (liek in your example). If this isn't true you will have to sort them before this operation.
GeneralContext Menu's Pin
exhaulted22-Aug-05 3:03
exhaulted22-Aug-05 3:03 
GeneralChanging the service name at installation time Pin
ankit.singhal@gmail.com22-Aug-05 2:34
ankit.singhal@gmail.com22-Aug-05 2:34 
GeneralRe: Changing the service name at installation time Pin
miah alom22-Aug-05 5:53
miah alom22-Aug-05 5:53 
QuestionHow can I show custom string such as "N/A" in DataGrid instead (null) for null columns? Pin
Behzad Ebrahimi22-Aug-05 2:28
Behzad Ebrahimi22-Aug-05 2:28 
AnswerRe: How can I show custom string such as &quot;N/A&quot; in DataGrid instead (null) for null columns? Pin
Behzad Ebrahimi22-Aug-05 3:51
Behzad Ebrahimi22-Aug-05 3:51 
QuestionWhat does .net stand for? Pin
Tuwing.Sabado22-Aug-05 1:41
Tuwing.Sabado22-Aug-05 1:41 
AnswerRe: What does .net stand for? Pin
Anonymous22-Aug-05 2:27
Anonymous22-Aug-05 2:27 
AnswerRe: What does .net stand for? Pin
Anonymous22-Aug-05 3:50
Anonymous22-Aug-05 3:50 
AnswerRe: What does .net stand for? Pin
seee sharp22-Aug-05 18:05
seee sharp22-Aug-05 18:05 
GeneralNeed help with PropertyGrid Pin
TheSnakeByte22-Aug-05 0:49
TheSnakeByte22-Aug-05 0:49 
GeneralRe: Need help with PropertyGrid Pin
SeMartens22-Aug-05 1:36
SeMartens22-Aug-05 1:36 
GeneralRe: Need help with PropertyGrid Pin
leppie22-Aug-05 1:43
leppie22-Aug-05 1:43 
GeneralDrag n Drop Pin
Anonymous21-Aug-05 23:47
Anonymous21-Aug-05 23:47 
GeneralOracleClient and ADO.NET Pin
seee sharp21-Aug-05 23:44
seee sharp21-Aug-05 23:44 
GeneralRe: OracleClient and ADO.NET Pin
turbochimp22-Aug-05 2:34
turbochimp22-Aug-05 2:34 
GeneralRe: OracleClient and ADO.NET Pin
seee sharp22-Aug-05 5:02
seee sharp22-Aug-05 5:02 
GeneralRe: OracleClient and ADO.NET Pin
Luis Alonso Ramos22-Aug-05 19:03
Luis Alonso Ramos22-Aug-05 19:03 

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.