The mentioned article is a good start, however, instead of relying on
a global variable to hold the possible values for the dropdown box, I
would use the Instance property passed through the
ITypeDescriptorContext. The term "context" really means that you can
get your values from the current context, i.e. the currently selected
target instance of the PropertyGrid. I wrote an article not so long
ago which can give you some clues too (http://www.visualhint.com/
index.php/blog/post/
how_to_setup_a_truly_dynamic_combobox_in_the_propertygrid/)
Best regards,
Nicolas Cadilhac @ VisualHint
[url="http://www.visualhint.com/?
utm_source=msdn&utm_medium=signature&utm_campaign=spgnet"
title="Custom PropertyGrid for .Net"]Smart PropertyGrid.Net[/url]
[url="http://www.propertygridresourcelist.com" title="Free resources
for the Microsoft PropertyGrid"]Microsoft PropertyGrid Resource List[/
url]
Free [url="http://www.visualhint.com/index.php/propertygrid_mfc/?
utm_source=msdn&utm_medium=signature&utm_campaign=spgmfc" title="Free
MFC PropertyGrid"]PropertyGrid for MFC[/url]
[url="http://www.visualhint.com/index.php/fieldpackeditor/?
utm_source=msdn&utm_medium=signature&utm_campaign=sfpe" title="Custom
DateTimePicker"]Smart FieldPackEditor.Net / DateTimePicker[/url]
On Oct 9, 2:15 pm, Husam Al-A''araj
<HusamAlAa...@discussions.microsoft.com> wrote:
> hi,
> below is a useful link
[quoted text clipped - 18 lines]
>
> > Mex
VisualHint - 10 Oct 2007 01:49 GMT
Hello Mex,
The mentioned article is a good start, however, instead of relying on
a global variable to hold the possible values for the dropdown box, I
would use the Instance property passed through the
ITypeDescriptorContext. The term "context" really means that you can
get your values from the current context, i.e. the currently selected
target instance of the PropertyGrid. I wrote an article not so long
ago which can give you some clues too (http://www.visualhint.com/
index.php/blog/post/
how_to_setup_a_truly_dynamic_combobox_in_the_propertygrid/)
(sorry for the repost, the signature was awful)
Best regards,
Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
> The mentioned article is a good start, however, instead of relying on
> a global variable to hold the possible values for the dropdown box, I
[quoted text clipped - 47 lines]
>
> > > Mex