Click here to Skip to main content
15,908,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL create table syntax error? Pin
Luc Pattyn10-Nov-09 1:10
sitebuilderLuc Pattyn10-Nov-09 1:10 
Questiontreeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 21:30
miss YY9-Nov-09 21:30 
table A
Field: a(char(40)) b(char(40))
q -- ss
q -- fs
q -- ffr
q -- egg
w -- ffh
w -- gykk
e -- hrh
e -- kyk
e -- jjtj
the Purpose: field "a" as father node,field "b" as child node,field "a" should not be repeated!this is part of my code,but it can't meet my Requirements.

public void AddTree(TreeNode pNode)
{
DataSet ds=new DataSet();
DataView dvTree = new DataView(ds.Tables[0]);
foreach (DataRowView Row in dvTree)
{
if (pNode == null)
{ //add father node
TreeNode Node = treeView1.Nodes.Add(Row["a"].ToString());

}
else
{
TreeNode Node = pNode.Nodes.Add(Row["b"].ToString());
}
}


it only can show feild "a" on treeview,like this:
q
q
q
q
w
w
e
e
e it repeat the Field 'a',can someone help me ,thanks very much!! Laugh | :laugh: Poke tongue | ;-P always waiting online
AnswerRe: treeview?this problem has Troubled me for few days Pin
Pete O'Hanlon9-Nov-09 21:56
mvePete O'Hanlon9-Nov-09 21:56 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 22:18
miss YY9-Nov-09 22:18 
GeneralRe: treeview?this problem has Troubled me for few days Pin
Pete O'Hanlon9-Nov-09 22:42
mvePete O'Hanlon9-Nov-09 22:42 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY11-Nov-09 14:19
miss YY11-Nov-09 14:19 
GeneralRe: treeview?this problem has Troubled me for few days Pin
miss YY9-Nov-09 22:19
miss YY9-Nov-09 22:19 
Questionabout Sql2000 Pin
miss YY9-Nov-09 21:05
miss YY9-Nov-09 21:05 
AnswerRe: about Sql2000 Pin
Christian Graus9-Nov-09 21:07
protectorChristian Graus9-Nov-09 21:07 
QuestionHow to induce form to hide rather than dispose upon user [x] button click? Pin
Chesnokov Yuriy9-Nov-09 20:55
professionalChesnokov Yuriy9-Nov-09 20:55 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
Christian Graus9-Nov-09 21:02
protectorChristian Graus9-Nov-09 21:02 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
Chesnokov Yuriy9-Nov-09 22:11
professionalChesnokov Yuriy9-Nov-09 22:11 
AnswerRe: How to induce form to hide rather than dispose upon user [x] button click? Pin
PIEBALDconsult10-Nov-09 4:12
mvePIEBALDconsult10-Nov-09 4:12 
Questiongeneral knowledge Pin
sujeet3082@yahoo.com9-Nov-09 20:20
sujeet3082@yahoo.com9-Nov-09 20:20 
AnswerRe: general knowledge Pin
Ashfield9-Nov-09 20:59
Ashfield9-Nov-09 20:59 
AnswerRe: general knowledge Pin
dan!sh 9-Nov-09 21:02
professional dan!sh 9-Nov-09 21:02 
Questioncd database Pin
mimi84699-Nov-09 20:20
mimi84699-Nov-09 20:20 
AnswerRe: cd database Pin
dan!sh 9-Nov-09 20:42
professional dan!sh 9-Nov-09 20:42 
GeneralRe: cd database Pin
mimi846910-Nov-09 11:50
mimi846910-Nov-09 11:50 
GeneralRe: cd database Pin
Christian Graus10-Nov-09 11:56
protectorChristian Graus10-Nov-09 11:56 
AnswerRe: cd database Pin
Christian Graus9-Nov-09 21:07
protectorChristian Graus9-Nov-09 21:07 
GeneralRe: cd database Pin
dan!sh 9-Nov-09 21:20
professional dan!sh 9-Nov-09 21:20 
AnswerCross Post. Pin
Pete O'Hanlon10-Nov-09 1:11
mvePete O'Hanlon10-Nov-09 1:11 
Questionabout culture in c# Pin
vijaylumar9-Nov-09 19:35
vijaylumar9-Nov-09 19:35 
AnswerRe: about culture in c# Pin
Christian Graus9-Nov-09 19:41
protectorChristian Graus9-Nov-09 19:41 

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.