diff options
author | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2009-08-10 18:34:55 +0400 |
---|---|---|
committer | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2009-08-10 18:34:55 +0400 |
commit | 31a3d7f1019b2f2e22aa815153c83b0563692a60 (patch) | |
tree | 75d385564919ddfac7d03999fc45d15da31c341c /mcs | |
parent | 6dc05aadf5ec1ddde68d6d3cc62f3c409ed2845d (diff) |
2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DataGrid.cs: Actually call BindColumns in the handler for
ListManager.MetaDataChanged, since the current code is already taking
into account the scenario when a custom table style is used - this was
confusing us before, and that's why we commented the call to
BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
changes as needed.
Fixes #465021.
svn path=/trunk/mcs/; revision=139643
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 10 | ||||
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 3ab28f75c30..841744abc02 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,13 @@ +2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com> + + * DataGrid.cs: Actually call BindColumns in the handler for + ListManager.MetaDataChanged, since the current code is already taking + into account the scenario when a custom table style is used - this was + confusing us before, and that's why we commented the call to + BindColumns. Also call CallAreasAndInvalidate, to properly reflect the + changes as needed. + Fixes #465021. + 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com> * DataGrid.cs: When setting the data source, if we have a user diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs index a6c3edfc683..834e228a75d 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs @@ -2462,12 +2462,8 @@ namespace System.Windows.Forms private void OnListManagerMetaDataChanged (object sender, EventArgs e) { - // 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 (); + BindColumns (); + CalcAreasAndInvalidate (); } private void OnListManagerPositionChanged (object sender, EventArgs e) |