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 / WinForm General / January 2008

Tip: Looking for answers? Try searching our database.

How to select a GridItem in PropertyGrid?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arto Viitanen - 11 Jan 2008 14:00 GMT
PropertyGrid has property SelectedGridItem, that lets you get and set
the selected GridItem. Fine, but where do you get the GridItem? I know
you can get sub items of a Griditem by its GridItems property and its
parent with Parent property, but where do you get the initial GridItem?

--
Arto Viitanen
VisualHint - 14 Jan 2008 14:27 GMT
Hello Arto,

there is no way to access directly to a property to get its GridItem.
The only way would be to use some sort of reflection hack to access
some internals of the grid or to get the currently selected GridItem,
then use its Parent property recursively to go to the top of the grid
and then browse the entire grid to find the property you want. Not
very efficient, I agree...

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)

> PropertyGridhas property SelectedGridItem, that lets you get and set
> the selected GridItem. Fine, but where do you get the GridItem? I know
[quoted text clipped - 3 lines]
> --
> Arto Viitanen

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.