Just use an enum for the property.
"Ron Ruble" <RonRuble (AT) discussions (DOT) microsoft.com> wrote
I've created a WebPart, as a page using the designer, I'm looking at |
it personalizable, and ran across these attributes:
[Personalizable(), WebBrowsable, WebDisplayName("My Display Name")]
all of which works great, making the properties available through a
PropertyGridEditorPart. The WebBrowsable attribute makes it visible just
fine; But I notice it uses the data type of the property to determine what
type of control to display: bool gets a checkbox, string gets a free-form
Is there a way to display a list of available string choices in a list,
without creating a personlization control? Something like a
list of values in an attribute I don't know about? Just looking for the
way to do this. I can always read up on creating my own control if needed;
I've seen the examples.
Thanks for any ideas.