Ok, so I am working with a PropertyGrid on a new project, and talk about a pain at first, but now I'm kind of loving it as long as I can get it to do what I need. Right now I am looking to see if anyone knows of a way to override a cell to be either a ColorComboBox like the typical properties palette.
So, for example, to override to a dropdown of layer names I have:
Public Class _LayerList : Inherits StringConverter
Public Shared _LyrArray As String()
Public Overloads Overrides Function GetStandardValues(ByVal context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection
Return New StandardValuesCollection(_LyrArray)
End Function
Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As ITypeDescriptorContext) As Boolean
Return True
End Function
Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As ITypeDescriptorContext) As Boolean
Return True
End Function
End Class
Any ideas or examples on where I could start?
Thanks in advance!