Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / October 2004

Tip: Looking for answers? Try searching our database.

How can a PropertyGrid show a custom UI editor at runtime?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Gackle - 14 Oct 2004 18:06 GMT
It's a simple question, but after hours of searching I've come up with
nothing! All I want to do is use the nice custom UI editor feature in
PropertyGrid when it isn't hosted in Visual Studio.

There are lots of examples out there showing how to get the
PropertyGrid to show your custom UI editor at design time, but if you
put a PropertyGrid control on your form and set SelectedObject at
runtime, the same custom editor doesn't show up.

I'd be very grateful for any help or sample code on this!

Daniel Gackle

p.s. sorry for the cross-post, but my post to windowsforms included a
quote from Shawn Burke that I now realize was answering a different
question. Also I hope there may be more PropertyGrid expertise here.
Daniel Gackle - 15 Oct 2004 18:14 GMT
Sqwawk! It does work. When you don't make stupid mistakes.

If anybody ever has this problem, make sure you don't do what I did:

  propertyGrid1.SelectedObject = myCustomEditorObject;

when what you really mean is:

  propertyGrid1.SelectedObject = objectWithSomePropertyOfMyCustomEditorType;

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.