Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Refresh of treeview after delete

Posted on 2009-05-20
6
Medium Priority
?
938 Views
Last Modified: 2012-05-07
Hi,
I've included a right click function on a treeview1 to delete a gandchild node.
But the thing is after deleting I want the treeview1 to refresh so that the user can't see the deleted granchild node.

I tried treeview.Refresh();but it did'n work.I hope someone can offer me some help or advice.
Thanks in advance.
0
Comment
Question by:csharp_learner
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:rambovn
ID: 24429882
Get the father node.
Delete it
Use fathernode.Expand()
0
 

Author Comment

by:csharp_learner
ID: 24437484
How can i get the fathernode?
I used treeview.topnode.expand() with no effect.
0
 
LVL 8

Accepted Solution

by:
rambovn earned 2000 total points
ID: 24448603
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:csharp_learner
ID: 24463870
Sorry for the late reply.
I tried treeview1.Parent. but i couldn't find the Expand property.
0
 
LVL 8

Assisted Solution

by:rambovn
rambovn earned 2000 total points
ID: 24466583
0
 

Author Comment

by:csharp_learner
ID: 24469569
Thanks treeScadaItems.SelectedNode.Parent.Expand(); worked for me.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question