Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Microsoft > Q: Ordering/Sorting text in a PropertyGrid
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 26th June 15:07
scotr
External User
 
Posts: 1
Default Q: Ordering/Sorting text in a PropertyGrid



There is no Do***ented or supported way to do it and nothing is exposed to allow it... I suppose its possible to 'hack' something but I haven't seen anything to indicate anyone
has.

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : scotr@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.


--------------------
  Reply With Quote


  sponsored links


2 26th June 15:08
robert hooker
External User
 
Posts: 1
Default SUCCESS!! Ordering/Sorting text in a PropertyGrid



Using "non-printable' characters works a treat.
For everyone else struggling with category ordering\sorting, to achieve
this:

+Z First Category
+ some props
+T Second Category
+ other props
+ A third category
+ more props

You can do this:
[Category("\t\tZ First Category]
[Category("\tT First Category]
[Category("A third Category]

It seems the PropetyGrid includes the "tabs" for the purposes of sorting,
but excludes them when it actually renders the text in the cell.

Rob.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666