Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted
You can have a property appear on the property grid that is not actually part of the class by using a custom TypeDescriptor (check out some tutorials on customizing the property grid), but what is the actual problem you're trying to solve here? There's likely a better solution.
[sIGPIC]e[/sIGPIC]
  • 2 weeks later...
Posted

Hi, sorry for the delay in replying.

 

What I've got is like a piping diagram. Each pipe is an object which I draw on the screen and each of these pipes contains a business object with a number of properties. I pass these business objects to dlls. The contents of each pipe can be sourced from a number of preceding pipes. The user can select that a pipe is used as a source for a secondary one. He has a choice between having whatever it contains passing through the secondary pipe or just a selected portion of what it contains passing through. At propertygrid level I want the source pipe to be shown as a line item. At dll level I want the actual contents that are passed through to be accessible.

 

So I was thinking of having a function for the benefit of the dlls which returns the pipe contents and a property for my benefit which holds details of the relevant pipes which is visible to the propertygrid but not through dlls.

 

Hope that makes it a bit clearer. What do you think?

  • Leaders
Posted
At propertygrid level I want the source pipe to be shown as a line item.

I'm not sure exactly how you want it represented in the property grid, but a tutorial on customizing the property grid (like this) should have all the info you need. It's not simple, but it's doable.

[sIGPIC]e[/sIGPIC]
Posted
I'm not sure exactly how you want it represented in the property grid, but a tutorial on customizing the property grid (like this) should have all the info you need. It's not simple, but it's doable.

 

Indeed, I'm not exactly sure how I want to represent this in the grid either, but that link looks helpful, thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...