Questions tagged [treeview]

TreeView control is used to display hierarchical information.

A tree view (control) displays a hierarchy of nodes, where the user can expand and collapse these nodes while navigating through the control. Often a tree view will provide the user the ability to view or edit additional information relating to the node selected.

Tree views are often used to present hierarchical data, such as an XML document or files and folders structure.

9439 questions
2
votes
0 answers

How can I make dynamically changeable columns for a hierarchical TreeView?

I am working on a WPF application which uses a hierarchical table. I made a sample project that works well, but there is another specification which must be provided. I used the following Microsoft sample to make the project:…
Christian
  • 105
  • 1
  • 6
2
votes
1 answer

focus lost after double click in tree view

We use in several place a CTreeCtrl (TreeView) and accept a double click to open dialogs related to the double clicked node. The opened dialog looses the focus after being opened, since the tree view seems to force to be focussed at the end of the…
Martin Lemburg
  • 507
  • 2
  • 12
2
votes
1 answer

Calling code-behind method on TreeNode click

I want to call a code-behind method when a TreeNode is clicked in my TreeView. I would imagine this isn't difficult to do, but I can't find a good example of how to do it. I've looked at TreeNodeSelectAction, but that appears to just be an…
Tyler Treat
  • 14,640
  • 15
  • 80
  • 115
2
votes
1 answer

Aftercheck and AfterSelect events in Treeview in Windows Forms

Im setting up a new Form and Im having some issuis with the TreeViewNodes checking and uncheking the childs. Its easier to see the problem in this short clip Normally it works properly but sometimes it gets stuck (I think there is a conflict with…
Juan Jesus
  • 63
  • 9
2
votes
2 answers

MFC CEdit Control does not handle Key Pressed after added to Accelerator

I have a Problem with the del Key in my MFC Application. I have defined an Accelerator entry to use the del key in my CTreeView. My Application uses a split view. The CTreeView is on the left panel and the CEdit Control is on the right Panel inside…
Kevin
  • 785
  • 2
  • 10
  • 32
2
votes
2 answers

angular material tree to display organization structure

I want to display organization structure using angular material tree with position, salary, year of services as properties. class Employee { name: string; position: string; salary: number; yearofServices: number; reports: Employee[]; …
user3097695
  • 1,152
  • 2
  • 16
  • 42
2
votes
2 answers

Choosing the right eventhandler

I have a treeview which have as treenodes databases and databases have tables. I want to show listview when I click on the table name. Which eventhandler do I have to use for that? I tried treenodemouseclick, treenodemousedoubleclick and mouseclick…
Vahan
  • 3,016
  • 3
  • 27
  • 43
2
votes
0 answers

TreeView How to recursively expand a List to a Tree?

I have a list of "StepModel" that follow the below Structure: (this List gets added to a Treeview Control) public class StepModel { // Other Properties removed for brevity public string SequenceNumber {get;set;} //1, 1.1, 2, 2.1 and so on …
Exxili
  • 45
  • 8
2
votes
3 answers

C# replacement for standard Treeview?

I'd like to find a replacement for provided System.Windows.Form.Treeview. I need the following improvements : Multiple selection of items Better performance (performance of standard widget is simply awful, in particular when adding a long list of…
Benoît
  • 16,798
  • 8
  • 46
  • 66
2
votes
1 answer

Theme WPF TreeViewItems with different control templates

I am trying to create different themes for a custom PropertyGrid control that inherits from TreeView, and uses TreeViewItems as the item containers. Additionally, I want to set the control template for the TreeViewItems based on the type of object…
Hank
  • 193
  • 1
  • 10
2
votes
1 answer

Example of programmatically creating and populating a TreeView in gi-gtk

I don't seem to be able to write working code that creates and populates a TreeView using the gtk 3 bindings of gi-gtk (specifically version 3.0.32). All examples I could find online are for different (and older) bindings that do not apply to…
fsestini
  • 121
  • 6
2
votes
1 answer

Vala: How do I know what column did the signal edited fire from?

I've wired all GtkCellRendererText that I want to edit to on_follow_ups_column_edited callback. How do I know which column did the signal come from? The signal only needs two parameters: path and data. path returns the row number, while data…
Shem Pasamba
  • 101
  • 1
  • 4
2
votes
0 answers

search/filter in ojet tree view

I am trying to implement search in tree view using OJet. Need to hide and show tree nodes based in search text, but unable to apply styles in child nodes beyond parent level. Any pointers are welcome.
JCoder210
  • 21
  • 1
2
votes
5 answers

ASP.Net TreeView Scrolling the selected node into view

Is there a way to scroll the selected node of an ASP.Net TreeView into view after a postback? In my parrticular scenario the control is repopulated after each postback. Thanks!
Dominic
  • 712
  • 1
  • 8
  • 15
2
votes
1 answer

Refresh TreeView CollectionViewSource ObservableCollection Item Changed

Hello I have the following setup for a treeview:
tcables
  • 1,231
  • 5
  • 16
  • 36