26th June 15:07
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
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 : firstname.lastname@example.org <Remove word online. from address>
This posting is provided “AS IS”, with no warranties, and confers no rights.
26th June 15:08
SUCCESS!! Ordering/Sorting text in a PropertyGrid
Using "non-printable' characters works a treat.
For everyone else struggling with category ordering\sorting, to achieve
+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.