Author: toshok
Date: 2007-01-05 13:26:51 -0500 (Fri, 05 Jan 2007)
New Revision: 70548
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
also, disable the call do BindColumns in
OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
1.1 the event isn't raised in response to a column addition on a
table.)
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-05 18:19:00 UTC (rev 70547)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-05 18:26:51 UTC (rev 70548)
@@ -3,6 +3,11 @@
* DataGrid.cs: don't forceably rebind columns in SetDataSource
unless our list manager has changed (i.e. unless we have reason to
believe our columns have changed). Fixes #80422.
+
+ also, disable the call do BindColumns in
+ OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
+ 1.1 the event isn't raised in response to a column addition on a
+ table.)
2007-01-05 Jonathan Pobst <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2007-01-05 18:19:00 UTC (rev 70547)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2007-01-05 18:26:51 UTC (rev 70548)
@@ -2404,7 +2404,12 @@
private void OnListManagerMetaDataChanged (object sender,
EventArgs e)
{
- BindColumns ();
+ // XXX
+
+ //we need to rethink this, as in 2.0 we get this event
when a column is added to a table.
+ // forcing a rebind of columns means that we fail bug
#80422. disable this for now.
+ //
+ // BindColumns ();
}
private void OnListManagerPositionChanged (object sender,
EventArgs e)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches