[Mono-bugs] [Bug 81004][Nor] Changed - Changing Datasource for a DataGridView results in incorrect rows and columns

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 7 18:31:29 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mtraudt at quantifisolutions.com.


--- shadow/81004	2007-03-07 13:33:01.000000000 -0500
+++ shadow/81004.tmp.8352	2007-03-07 18:31:29.000000000 -0500
@@ -30,6 +30,27 @@
 when adding rows, you need to force a repaint (for example by
 minimizing and then de-minimizing the form).
 ------- Additional Comments From pedromj at gmail.com  2007-03-07 13:33 -------
 Fixed in SVN, r73893.
+------- Additional Comments From mtraudt at quantifisolutions.com  2007-03-07 18:31 -------
+I did an svn update but when I run my test program I still get a very
+strange results.  First of all, I have to force a repaint (for
+example, by minimizing/de-minimizing).  Note that I confirmed that the
+refresh bug I reported in a separate bug is fixed, so this seems to be
+specific to switching data sources.
+Also, when I force a repaint instead of correctly replacing the rows
+and columns from the old DataTable with the new, it seems to append
+the rows and columns.
+Finally, as before if you set the DataSource=null, it throws an
+exception saying it cant bind type.  with SWF you can set the
+DataSource to null.  I have come across several code examples where
+the DataSource is set to null for the DataGridView in order to clear
+the grid, for example:

More information about the mono-bugs mailing list