Click here to Skip to main content
16,005,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: Then how? Pin
Dave Kreskowiak14-Jul-05 16:28
mveDave Kreskowiak14-Jul-05 16:28 
GeneralRe: Then how? Pin
Expert Coming14-Jul-05 17:45
Expert Coming14-Jul-05 17:45 
Generalpdf Pin
(Steven Hicks)n+114-Jul-05 8:53
(Steven Hicks)n+114-Jul-05 8:53 
GeneralRe: pdf Pin
Christian Graus14-Jul-05 11:21
protectorChristian Graus14-Jul-05 11:21 
GeneralConverting string value to System.IO.Stream Pin
Neel0714-Jul-05 6:27
Neel0714-Jul-05 6:27 
GeneralRe: Converting string value to System.IO.Stream Pin
S. Senthil Kumar14-Jul-05 7:07
S. Senthil Kumar14-Jul-05 7:07 
GeneralPasteSpecial() in Word Pin
rivi2k14-Jul-05 6:09
rivi2k14-Jul-05 6:09 
Generaldistinct tree node identifiers Pin
Anonymous14-Jul-05 6:07
Anonymous14-Jul-05 6:07 
trying to create child nodes from db, i have 5 entries in the db listed in order as show:
hello1
hello2
hello5
user1
user2

when i create the child node it only shows "hello1", i can get it to change from "hello1" to "hello2" if i change my query, but they still are all the same listing.
here it the code:

	treeView1.Nodes.Clear();
dataConnection.Open();
TreeNode dbnode = new TreeNode("Cashier User Names");
TreeNode dbnode1 = new TreeNode();
string dbName = dataConnection.DataSource.ToString();
treeView1.Nodes.Add(dbnode);
dataCommand.Connection = dataConnection;
dataCommand.CommandText = "SELECT id ";	
dataCommand.CommandText += "FROM people WHERE access_level = 'Cashier' ORDER BY id DESC";
dataReader = dataCommand.ExecuteReader(CommandBehavior.CloseConnection);
while (dataReader.Read())
{
dbnode1.Tag = dataReader.GetValue(0).ToString();
dbnode1.Text = dataReader.GetString(0);
dbnode.Nodes.Add(dbnode1);
treeView1.ExpandAll();
}

please help as i'm struggling to learn this treeview
there isn't much written info on them that i can find

Unsure | :~
GeneralRe: distinct tree node identifiers Pin
mav.northwind14-Jul-05 9:27
mav.northwind14-Jul-05 9:27 
GeneralRe: distinct tree node identifiers Pin
Anonymous14-Jul-05 10:50
Anonymous14-Jul-05 10:50 
GeneralSend struct via NET Remoting Pin
Iurii Okhmat14-Jul-05 6:03
Iurii Okhmat14-Jul-05 6:03 
GeneralRe: Send struct via NET Remoting Pin
mav.northwind14-Jul-05 9:22
mav.northwind14-Jul-05 9:22 
GeneralRe: Send struct via NET Remoting Pin
Iurii Okhmat14-Jul-05 21:15
Iurii Okhmat14-Jul-05 21:15 
GeneralRe: Send struct via NET Remoting Pin
mav.northwind15-Jul-05 9:30
mav.northwind15-Jul-05 9:30 
GeneralDataView Pin
rnvrnv14-Jul-05 5:44
rnvrnv14-Jul-05 5:44 
GeneralRe: DataView Pin
Christian Graus14-Jul-05 11:25
protectorChristian Graus14-Jul-05 11:25 
GeneralRe: DataView Pin
tatchung14-Jul-05 15:16
tatchung14-Jul-05 15:16 
GeneralRe: DataView Pin
Christian Graus14-Jul-05 15:40
protectorChristian Graus14-Jul-05 15:40 
GeneralRe: DataView Pin
tatchung14-Jul-05 15:48
tatchung14-Jul-05 15:48 
GeneralRe: DataView Pin
tatchung14-Jul-05 15:48
tatchung14-Jul-05 15:48 
GeneralRe: DataView Pin
rnvrnv15-Jul-05 1:37
rnvrnv15-Jul-05 1:37 
GeneralPush Models Pin
felopater14-Jul-05 5:41
felopater14-Jul-05 5:41 
GeneralRe: Push Models Pin
Christian Graus14-Jul-05 11:22
protectorChristian Graus14-Jul-05 11:22 
Generalposting xml via http in c# Pin
cakewalkr714-Jul-05 5:03
cakewalkr714-Jul-05 5:03 
GeneralRe: posting xml via http in c# Pin
Vasudevan Deepak Kumar14-Jul-05 5:17
Vasudevan Deepak Kumar14-Jul-05 5:17 

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.