Questions tagged [treenodecollection]
6 questions
2
votes
1 answer
How do I override TreeNodeCollection.Add(TreeNode)?
I have this:
public abstract class DRT_Tvw_Abstract : TreeView
{
TableCountMetrics metrics;
public TableCountMetrics Metrics { get => metrics; set => metrics = value; }
public class TableCountMetrics
{
int schemaNameCount =…

VA systems engineer
- 2,856
- 2
- 14
- 38
0
votes
4 answers
Do Keys in a TreeNodeCollection need to be unique?
A TreeNode.Name is also the node's key when it part of a TreeNodeCollection (e.g. when added to a TreeView.Nodes).
Does the TreeNode.Name need to be unique?
I've got as far as TreeNodeCollection at MSDN but am unsure how to find the answer after…

MattyG
- 8,449
- 6
- 44
- 48
0
votes
2 answers
What is the correct way to call an extension method (TreeNodeCollection Add method)?
The pertinent parts of my code are below. In the MyTreeView class (last block of code below), the line of code TncExtensions.TncNodeAdd(this, myTreeViewNode); generates the error CS7036 There is no argument given that corresponds to the required…

VA systems engineer
- 2,856
- 2
- 14
- 38
0
votes
1 answer
Using TreeNodeCollection, TreeNodeBinding, TreeView to add nodes for GridViews
I am working on improving a business process, where the existing View state calls for GridView items, but now seeks to implement in a collapsing tree. I have found the simplest method is to shadow the logic and during the aggregate stages assign…

Nathan Teague
- 825
- 6
- 11
0
votes
2 answers
Insert Existing TreeNodeCollection in TreeNode
Problem:
In the screenshot below, I have a node 300-9885-00X along with its TreeNodeCollection (in the red square). A little bit lower, we find the 300-9885-00X again, I want to insert the TreeNodeCollection that we found earlier, into that node…

Alex
- 4,821
- 16
- 65
- 106
0
votes
1 answer
How add TreeNode to TreeNodeCollection with more than name and text in C#
I want to add to my treeview some nodes with childs, but have a problem how to add nodes with for example ToolTipText. I want do it with TreeNodeCollection.
It is possible or how could I change my code?
Here is my code where all nodes are root…

Norrens
- 1
- 3