Author: mkestner
Date: 2006-11-07 18:55:31 -0500 (Tue, 07 Nov 2006)
New Revision: 67504

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:

2006-11-07  Mike Kestner  <[EMAIL PROTECTED]>

        * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
        if there's a selection.  Fixes #79849.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 23:41:31 UTC (rev 67503)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 23:55:31 UTC (rev 67504)
@@ -1,3 +1,8 @@
+2006-11-07  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
+       if there's a selection.  Fixes #79849.
+
 2006-11-07  Gert Driesen  <[EMAIL PROTECTED]>
 
        * PropertyGrid.cs: Avoid fixed height of help description label.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-07 23:41:31 UTC (rev 67503)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-07 23:55:31 UTC (rev 67504)
@@ -1941,6 +1941,8 @@
                protected override void CreateHandle ()
                {
                        base.CreateHandle ();
+                       if (SelectedItems.Count > 0)
+                               OnSelectedIndexChanged (EventArgs.Empty);
                }
 
                protected override void Dispose (bool disposing)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to