razza_b
asked on
C# treeview node
Anyone know how i can select a child node in a treeview that goes and calls a SP?
ASKER
yes something like that..
or
private void treeView1_Click(object sender, EventArgs e)
{
if(treeView1.SelectedNode. Text.ToUpp er())
{
// db conn code
//call SP with selected node text
}
}
but everytime i select a different node will this constantly call db sp?
or
private void treeView1_Click(object sender, EventArgs e)
{
if(treeView1.SelectedNode.
{
// db conn code
//call SP with selected node text
}
}
but everytime i select a different node will this constantly call db sp?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
private void treeView1_Click(object sender, EventArgs e)
{
switch(treeView1.SelectedN
{
case "A":
//Your code
case "B":
//Your code
}
}