|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom type converterFor 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 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. 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 >
Bound dropdownlist in .NET 2.0 -- picking the selected value?
masterpages: body event handler <customErrors mode="Off"/> ERROR How to reference the masterpage body element in server code master-pages: naming problem for client-side scripting Repeater.Itemcommand not firing referencing and anchor from within a usercontrol (ascx) referencing and anchor from within a usercontrol (ascx) How to filter file types when using the HTMLInputFile control... Membership roles question |
|||||||||||||||||||||||