Last post Oct 06, 2010 07:38 PM by jkirkerx
Oct 06, 2010 07:46 AM|intelligenz|LINK
I have a custom server control built. It works great. I want to expose a property so that in designer the developer can put a check which options they want enabled for that property. For example, it is a grid that has Edit, Update, Delete, Undelete displayed
on each row.
I want to have a property called AvailableRowCommands (or something like that) so the developer clicks down, puts a check next to each one they want and they're done. So they coudl check just edit and update and not delete.
Would I use sub properties for this?
Thanks for your help!
Oct 06, 2010 06:36 PM|sansan|LINK
You need to create a custom property editor to show a dropdown. I guess you can't do it with a checkboxlist.
Oct 06, 2010 07:38 PM|jkirkerx|LINK
I don't think the checkbox is supported, you have to use the boolean for the property value
in vb it's
<Category("Facebook Share Options")> _
Public Property FacebookShare() As Boolean
Set(ByVal Value As Boolean)
_Facebook_Share = Value
Then in declarations put
Public _Facebook_Share As Boolean
To use in code
if value = [Facebook_Share] Then
You'll have to translate