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 2005

Tip: Looking for answers? Try searching our database.

Is there a way to set the category order in the PropertyGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Matheson - 17 Jan 2005 11:05 GMT
I have an application which uses the PropertyGrid to display
highly-customised dynamic data using ICustomTypeDescriptor. I need to be able
to display the properties within categories with the order of both the
categories and properties being programmable.

I can control the order of properties by setting PropertyGrid.Sort to
Categorized (which displays properties within each category in the order they
are returned from ICustomTypeDescriptor.GetProperties), but I can find no way
of controlling the order of the categories themselves. They always seem to be
displayed in alphabetical order independent of the order in which the
properties are returned.

Is there any way to override this category order?
Tom Krueger [MSFT] - 28 Jan 2005 01:01 GMT
Hello,

I'm not sure if there is a way to order the categories, however, here are
links that I have for the property grid.  There may be something in them.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/u
singpropgrid.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/v
snetpropbrow.asp

http://www.c-sharpcorner.com/Code/2004/June/PropertyGridInCSharp.asp

In the mean time I will ask around.

Signature

Tom Krueger

My Blog - http://weblogs.asp.net/tom_krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

>I have an application which uses the PropertyGrid to display
> highly-customised dynamic data using ICustomTypeDescriptor. I need to be
[quoted text clipped - 13 lines]
>
> Is there any way to override this category order?
Tom Krueger [MSFT] - 31 Jan 2005 22:29 GMT
Hello,

I found out that it is NOT possible to order the categories in a property
grid.  Sorry.

Signature

Tom Krueger

My Blog - http://weblogs.asp.net/tom_krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

> Hello,
>
[quoted text clipped - 24 lines]
>>
>> Is there any way to override this category order?

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.