2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Tue, 9 Dec 2008 22:31:22 +0000 (22:31 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Tue, 9 Dec 2008 22:31:22 +0000 (22:31 -0000)
* DataGridView.cs: Refresh column sizes when new rows are added.
[Fixes bug #457050]

svn path=/trunk/mcs/; revision=121169

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridView.cs

index 2f7d88430430416593b02e8c5d72777b5aa225a1..33b451e00726216e2f5fe0cffa019197cd4fdbc6 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Refresh column sizes when new rows are added.
+       [Fixes bug #457050]
+
 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
        * RichTextBox.cs: When parsing the contents of a rtf file, don't call
        Split to create a line - we are already doing this, by _adding_ a new
index 3f766d3eb01f01c462da2825d4cb66a9a6656b20..15fec5033bdff365c470de225708af2afecd575a 100644 (file)
@@ -4815,6 +4815,7 @@ namespace System.Windows.Forms {
 
                internal void OnRowsAddedInternal (DataGridViewRowsAddedEventArgs e)
                {
+                       AutoResizeColumnsInternal ();
                        Invalidate ();
                        OnRowsAdded (e);
                }