2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Thu, 19 Mar 2009 18:09:54 +0000 (18:09 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Thu, 19 Mar 2009 18:09:54 +0000 (18:09 -0000)
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
FullRowTemplate already contains all the cells.
[Fixes part of bug #486645]

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

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

index 9532c18b13b08db15d5c47d84c52ac90a3609b70..4a4f8d09b2d82736676bd1b6683d661177077de8 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
+       FullRowTemplate already contains all the cells.
+       [Fixes part of bug #486645]
+
 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
 
        * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
index ffc8bd7c59bb40ab80fcce63b852beef786d78b8..853ce852b647a1adf72ba86e47b22518497ec5d7 100644 (file)
@@ -1031,9 +1031,6 @@ namespace System.Windows.Forms {
                                        for (int i = rows.Count; i < value; i++) {
                                                DataGridViewRow row = (DataGridViewRow) RowTemplateFull;
                                                rows.AddInternal (row, false);
-                                               
-                                               foreach (DataGridViewColumn col in columns)
-                                                       row.Cells.Add (col.CellTemplate.Clone () as DataGridViewCell);
                                        }
                                }
                        }