Home All Groups Group Topic Archive Search About
Author
20 Dec 2005 11:29 AM
KK
Hi

For the server control I am developing, there is a property which I want to
show a list.
The content of the list is a subset of Properties available in the control
itself. For example
my control has

Property1
Property2
Property3
Property4
Property5

Now there is another property called

SelectedField

I use reflection to query the properties in the control (in this case
Prop1... 5)
Now I want the names of the properties to be listed as a dropdown for
SelectedField.

Any help is appreciated

Regards
KK

Author
21 Dec 2005 8:16 PM
Teemu Keiski
Check this out:

Implementing a type converter
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconImplementingTypeConverter.asp

"Type Converters That Provide a List of Standard Values to a Property Grid"
section is most likely what you are looking for.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Show quoteHide quote
"KK" <KK.kk.com> wrote in message
news:e6$0ViVBGHA.4076@TK2MSFTNGP14.phx.gbl...
> Hi
>
> For the server control I am developing, there is a property which I want
> to show a list.
> The content of the list is a subset of Properties available in the control
> itself. For example
> my control has
>
> Property1
> Property2
> Property3
> Property4
> Property5
>
> Now there is another property called
>
> SelectedField
>
> I use reflection to query the properties in the control (in this case
> Prop1... 5)
> Now I want the names of the properties to be listed as a dropdown for
> SelectedField.
>
> Any help is appreciated
>
> Regards
> KK
>