paddy

paddy

  • NA
  • 10
  • 0

Whats the best way using a Propertygrid in connection with generated classes

Jun 2 2008 8:42 AM
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

Answers (2)