[Mono-bugs] [Bug 395345] New: PropertyGrid: items are unsorted in HEAD

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 29 05:53:08 EDT 2008


           Summary: PropertyGrid: items are unsorted in HEAD
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: contact at i-nz.net
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Since r104212 (I presume), the items in a PropertyGrid are unsorted, both in
alphabetical and category mode.

In Category mode the categories should appear in alphabetical order and the
items within each category should be sorted.  Now, for SWF Button for example,
within category Appearance we see: BackColor, FlatStyle, ..., Text, *but* then
BackgroundImage, Cursor, etc.  Should of course be: BackColor, BackgroundImage,
Cursor, FlatStyle, etc. (Remember that missing attributes, bug , cause
BackgroundImageLayout to appear in the Misc category).  A similar effect is
seen in Alphabetical mode.

Would a simpler change have worked, something like this?

int unique = 0;
internal void Add (GridItem grid_item)
  if (!list.ContainsKey(grid_item.Label))
    list.Add (grid_item.Label, grid_item);
    list.Add(grid_item.Label + "_" + (++unique).ToString(), grid_item);

Don't know when GridItemCollection.this[String] is used, but it can only return
one of the duplicated whatever the implementation.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list