Ordering sub-elements in a PropertyGrid
-
I'm using a PropertyGrid in C# to display ConfigurationElements. I have an implementation of a ExpandableObjectConverter TypeConverter to display the sub-elements (with descriptions) in the property grid. E.g.
Item 1
First sub-item
Item 1 ID
Second sub-item
x
Item 2
First sub-item
Item 2 ID
Second sub-item
x
...I want to display the sub-elements in a specific order - not alphabetically (e.g. The ID before the other sub-elements). Could anyone please tell me how to specify the ordering? (I've Googled it, looked at CodeProject articles, looked on MSDN - where I (momentarily) thought I'd found a solution using SortProperties - which turns out not to be overridable.) Any ideas would be much appreciated. P.S. I tried posting this in the Quick Answers - but I can't see my post (so please don't flame me for cross-posting if you can see it in both places).
"...there's what people want to hear, there's what people want to believe, there's everything else, THEN there's the truth!" - New York D.A., The International
-
I'm using a PropertyGrid in C# to display ConfigurationElements. I have an implementation of a ExpandableObjectConverter TypeConverter to display the sub-elements (with descriptions) in the property grid. E.g.
Item 1
First sub-item
Item 1 ID
Second sub-item
x
Item 2
First sub-item
Item 2 ID
Second sub-item
x
...I want to display the sub-elements in a specific order - not alphabetically (e.g. The ID before the other sub-elements). Could anyone please tell me how to specify the ordering? (I've Googled it, looked at CodeProject articles, looked on MSDN - where I (momentarily) thought I'd found a solution using SortProperties - which turns out not to be overridable.) Any ideas would be much appreciated. P.S. I tried posting this in the Quick Answers - but I can't see my post (so please don't flame me for cross-posting if you can see it in both places).
"...there's what people want to hear, there's what people want to believe, there's everything else, THEN there's the truth!" - New York D.A., The International
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Thanks Dave, but if I view all questions under QA (All Questions | Latest) I don't see it. Am I being a dumbass?
"...there's what people want to hear, there's what people want to believe, there's everything else, THEN there's the truth!" - New York D.A., The International
-
Thanks Dave, but if I view all questions under QA (All Questions | Latest) I don't see it. Am I being a dumbass?
"...there's what people want to hear, there's what people want to believe, there's everything else, THEN there's the truth!" - New York D.A., The International
Right now I see it second entry on page 2, check your filters on the right hand side!
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Right now I see it second entry on page 2, check your filters on the right hand side!
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Thanks Dave. I can see it now.
"...there's what people want to hear, there's what people want to believe, there's everything else, THEN there's the truth!" - New York D.A., The International
:thumbsup:
Dave
If this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)