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 180609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:37:00+00:00 2026-05-11T14:37:00+00:00

I have a custom property descriptor that I use to support flattening object hierarchies.

  • 0

I have a custom property descriptor that I use to support flattening object hierarchies.

To accomplish this I subclassed PropertyDescriptor and I store a linked list to the ‘next’ (child) property that I want to retrieve the value for.

This enables me to bind subproperties to a grid(export to excel, whatever) in a ‘flat’ manner.

eg. Grid(bound Property, Caption)

Col1:Customer.Name(Customer) Col2:Customer.Address(Address) Col3:Customer.OutstandingOrders.Count(Outstanding Orders) 

The problem is that once I add in a column with a duplicate name, regardless of the fact it’s got a unique caption it will retrieve the property for the 1st one but still put the correct header in:

Col4:Customer.Company.Name(Company) 

Any ideas?

  • 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. 2026-05-11T14:37:01+00:00Added an answer on May 11, 2026 at 2:37 pm

    The problem is that once I add in a column with a duplicate name, regardless of the fact it’s got a unique caption it will retrieve the property for the 1st one but still put the correct header in.

    Can you clarify that line? I’ve done this before, but I used the navigation path in the imaginary name – i.e. I might have the PropertyDescriptor.Name report Customer_Company_Name rather than Name, and use the .DisplayName to report something more readable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

say, I have a partial class that contains a custom property like this public
I have a custom object Foo with a boolean property called Flagged and when
I have an int property in my viewmodel that returns a custom class property.
I have a class with a custom indexer like so public string this[VehicleProperty property]
Currently, we use a giant configuration object that is serialized to/from XML. This has
I have a custom model binder with public override object BindModel(controllerContext, bindingContext) that checks
I have a set of custom PropertyDescriptor that I want to add categories too
I have a custom control that has a property that is an ObservableCollection of
I have a custom UITypeEditor that is in use for Colour Selection with my
We have a Hibernate based system with Annotations. Our entities have a custom property

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.