Windows Develop Bookmark and Share   
 index > Windows Forms General > TreeView control - Any good examples?
 

TreeView control - Any good examples?

I want to use a treeview which has several nodes. When a node is clicked, I want some textboxes and other controls to be populated to the right of my tree view. For example, if a user clicks the "Automobile" node, to the right of my treeview I want to populate some controls to add a new "Automobile" to the system, etc.

Any good examples out there? thanks in advance!

Morrissey99  Thursday, August 31, 2006 10:50 PM

1- Create and configure your TreeView Control
2- Drag a SqlDataSource control to the site (SqlDataSource1, for our example)
3- Configure the SqlDataSource to pull the columns from you database, in the configuration, select WHERE, chose the column you want to use as filter, the operator (probably '='), and for source use control, in the Parameters Property window, choose the treeview control.
4 - Create a GridView, DetailView, Dataview (whatever fits you) and bind it to your SqlDataSource.
5- Now the content of your Gridview will change according to your Treeview selection.

Hope that helps!
cunha  Friday, September 01, 2006 12:59 AM

Hi,

You may have a look at this example: http://www.codeproject.com/csharp/tv-lv-basic41.aspIt's about the explorer implemented with the help of treeview and listview which has something in common with your requirement.

Hope this helps.

gqlu  Friday, September 01, 2006 1:15 AM

You can use google to search for other answers

Custom Search

More Threads

• NotifyIcon ShowBalloonTip renders balloon tip in 2 different styles in Vista
• Using System.Drawing.Known Color
• Progress Bar in StatusBar control issue
• Highlight Dates in DateTimeEditor
• How to do ? synchro folder local machine and ftp site?
• Difficult to fix focus on main form after splash screen....
• Windows Form Height property (.NET developpement)
• How to access methods of MDI Child from by MDI Parent Toolbar?
• OnKeyUp event doesn't fire
• Can anyone help me to make a shadow for forms (Once more)