views:

225

answers:

1

I'm new to C# and I've been trying to design my own program for a while now. I came a across a control named Property Grid, it suits me perfectly and aftering Googling, I managed to find how to split up the various properties into catagories using attritubtes.

But I cannot find any information on adding sub-catagories to another catagory. Can anyone shed light on this subject? Thank you.

A: 

The PropertyGrid control doesn't support "nested" categories. Is there something in particular that you're trying to do (e.g. another application that you've seem which implements the functionality that you're trying to achieve) and maybe we can steer you in the right direction...

Dean Harding
The main reason for this is because of the sheer number of properties would probably make navigating the properties grid tiresome. For example: I have "Offset" with x, y ,z. I also have quite a few others propertys that would all strongly relate with each other.
Cathering
Yeah, unfortunately, there's not much you can do about that. You might be able to do something with a custom type editor (see here: http://msdn.microsoft.com/en-us/library/ms171839.aspx) perhaps...
Dean Harding