I tried SPG but it seems the SelectedObject property does not work at all. I
do not realize why author announced the support of reflection in such a
case.
- Yuri
Hello,
I don't see the original message before Robert's answer but did the
original poster had a look to Smart PropertyGrid.Net ?
Best regards,
Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com
Robert Fuchs a écrit :
Hello Yuri,
I'm the author. I don't know when you checked SPG the last time. I
think the term "at all" is a bit premature. SelectedObject (and now
SelectedObjects) is used practically by all my customers with success.
At first it was just a simple way to migrate an application easily and
then the customer would have to use techniques more specific to SPG.
But I quickly realized that developers like this way of binding an
object and that it's difficult or simply not desired for them to change
their code, so I made sure that SelectedObject(s) would be feature
complete. However, sometimes, it is challenged by a very special use of
converters and descriptors and this allows me to enhance SPG or add
something I would have forgotten. If you have such an issue, I will be
happy to analyze it and fix the code. You can do so here, in my forums
or directly by email. Thank you.
Best regards,
Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com
Yuri O a écrit :
> I tried SPG but it seems the SelectedObject property does not work at all. I
> do not realize why author announced the support of reflection in such a
[quoted text clipped - 28 lines]
> >
> > regards, Robert
Yuri O - 02 Dec 2006 19:32 GMT
Hi Nicolas
Thanks for explanation.
I tried your latest demo downloaded from your site (lib build v2.0.50727).
I merely tried to assign this property & it failed with reason "object
reference not set".
I also did not find this property in design-time in MS prop grid. Is it
right observation?
ps: Just to note: You component looks promising, keep up your work.
Thanks
Yuri
Hello Yuri,
I'm the author. I don't know when you checked SPG the last time. I
think the term "at all" is a bit premature. SelectedObject (and now
SelectedObjects) is used practically by all my customers with success.
At first it was just a simple way to migrate an application easily and
then the customer would have to use techniques more specific to SPG.
But I quickly realized that developers like this way of binding an
object and that it's difficult or simply not desired for them to change
their code, so I made sure that SelectedObject(s) would be feature
complete. However, sometimes, it is challenged by a very special use of
converters and descriptors and this allows me to enhance SPG or add
something I would have forgotten. If you have such an issue, I will be
happy to analyze it and fix the code. You can do so here, in my forums
or directly by email. Thank you.
Best regards,
Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com
Yuri O a écrit :
> I tried SPG but it seems the SelectedObject property does not work at all.
> I
[quoted text clipped - 29 lines]
> >
> > regards, Robert
VisualHint - 02 Dec 2006 20:56 GMT
Hello Yuri,
thanks for your answer. However I don't understand what you are saying
about "this property". Which property ? Since this post becomes some
troubleshooting of your issue, I propose that you post it at
forums.visualhint.com with further explanations (if you wish, of
course).
Best regards,
Nicolas Cadilhac
VisualHint
Yuri O a écrit :
> Hi Nicolas
>
[quoted text clipped - 67 lines]
> > >
> > > regards, Robert
Yuri O - 02 Dec 2006 21:13 GMT
Alright, no matter. I meant of course "SelectedObject".
Yuri
Hello Yuri,
thanks for your answer. However I don't understand what you are saying
about "this property". Which property ? Since this post becomes some
troubleshooting of your issue, I propose that you post it at
forums.visualhint.com with further explanations (if you wish, of
course).
Best regards,
Nicolas Cadilhac
VisualHint
Yuri O a écrit :
> Hi Nicolas
>
[quoted text clipped - 70 lines]
> > >
> > > regards, Robert
VisualHint - 02 Dec 2006 22:54 GMT
Oh I see then. This is normal that you get an exception. The sample
creates the content of the grid dynamically and acts on those
properties in various callback methods (like OnPropertyCreated). If you
change the content of the grid by using SelectedObject, you also have
to comment the code that I have put in those callbacks that is specific
to my sample and that will be totaly unrelated to your "selected
object". If you want to discover SPG, try to integrate it with your
code. If you modify the sample without reading the doc, you risk to
break something.
Best regards,
Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com
Yuri O a écrit :
> Alright, no matter. I meant of course "SelectedObject".
> Yuri
[quoted text clipped - 88 lines]
> > > >
> > > > regards, Robert