Hi there,
I'm relativly new to Windows.Forms and have a question how I could resolve my problem the best or simplest way :-)
I have a complex class hierarchy, which is built upon an XML schema (generated c# code by a CodeGen tool named CodeXS)...
so far, now I wanted to use a PropertyGrid to show up data from this generated class with its subclasses. The data doesnt have to be edited, its more a readonly action. I know that the property grid is used to change values at runtime, but I like the visual style of this component, therefore I wanted to use it in my case.
Ive found the following interesting Codesnippet :
http://www.codeproject.com/KB/miscctrl/bending_property.aspx
my question is now, would it be a good place to start, or are there other possibilities, which may be better in my case ?
Many thanks in advance :-)
PS: I hope I took the right forum for my concern :)
greets
paddy
Loading
paddyPosted Jun 3, 2008, 4:04 AM
I want to show up some data from this object in the propertygrid. I know there where tags like [Category...] etc. which defines what to show and what not but I wanted to avoid editing the generated class by hand. The reason for that is, that the XML-schema is fast moving, in other words there were many changes from time to time, so I have to built up the source code again.
Then I'd have to put the binding-tabs ([Category] etc) everytime again into the generated class (by hand).
I hope you understand what I mean :-)
regards,
paddy
Scott LyslePosted Jun 2, 2008, 9:09 PM