Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8409129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:49:08+00:00 2026-06-09T23:49:08+00:00

In this project there are multiple reports being generated. Each report can have unlimited

  • 0

In this project there are multiple reports being generated. Each report can have unlimited subreports, making this a completely recursive solution. I need to make a C# viewer to show these reports, so I made a basic prototype at the moment with a left panel of a treeview and the right panel with a textbox.

My problem is I cannot figure out a way to have the right text populate with the information from the left report (from the tree view) properly. The names of the reports can be duplicates. I was originally adding all of the information to a dictionary with the report names for the keys and the data as the values, but this was not working because of the duplicate titles…

I wanted to use some kind of unique random ID for each report to associate the treenodes with the correct report information, but I seem to be having difficulty doing this. http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode.aspx

From what I have read it doesn’t seem like there is some kind of property I can use to do this…How can I make the right textbox populate the information from the report based on the selected treenode on the left side? The treenodes are being added recursively at the moment, and like I said there can be duplicates, so the names of the nodes are not necessarily unique.

Thanks, I will be happy to answer any further questions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:49:09+00:00Added an answer on June 9, 2026 at 11:49 pm

    Use the TreeNode.Tag property to store a reference to the report:

    TreeNode node = TreeView1.Nodes.Add(report.Name);
    node.Tag = report;
    

    Then, in the AfterSelect event handler, retrieve the report from the Tag property of the selected node:

    Report report = (Report)e.Node.Tag;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a Team Project and under this Team Project there are multiple visual
I have a project where there are multiple applications that have some common configuration
I have been working on this project on Java with multiple modules. Since quite
There's this masterpage in a folder named Templates in my project. When I create
I have a python project with this directory structure and these files: /home/project_root |---__init__.py
I have this Project model: class Project < ActiveRecord::Base validates :status, :inclusion => {
I have been handed this project that has a large number of issues with
For this project I'm working on, I want to take multiple excel sheets and
I have this project that i need to add a translation to. I already
I have been working on this project for my job, which involves backing up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.