Get Property Values from database in PropertyGrid...

Feb 6 2007 10:04 AM
Hi!

I need to create and manage some properties to my classes and edit them as runtime with PropertyGrid. About some properties like strings or intergers there is no problem. but some of the properties need to be connected to other classes.

for example i have 2 classes called 'Company' and 'CompanyType'.
one of the property members of Company class is 'CompanyType' that can have value from 'CompanyType' Values in database. we have for example 3 types record in database as 'type1' 'type2' and 'type3'.

I need to show the CompanyType property values of Comapny Class in PropertyGrid like a ComboBox and let the user select one of the values.

Please help me, if you have any idea to do this.

thanks
Amin