diff options
author | Mario Carrion <mario@carrion.mx> | 2009-02-04 20:10:31 +0300 |
---|---|---|
committer | Mario Carrion <mario@carrion.mx> | 2009-02-04 20:10:31 +0300 |
commit | 3b86c05ac93f0c6e6b108a419c77d294143893f1 (patch) | |
tree | 12c982ddf5314563f8db1ee0bca9084b70dfde7a /mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | |
parent | c5ff3a48806252b1814934cbe0ab7e42f35c0fb6 (diff) |
2009-02-04 Mario Carrion <mcarrion@novell.com>
* ColumnHeader.cs: Raising ListView.ColumnWidthChanged when
setting Width.
* ListView.cs: Internal method added: RaiseColumnWidthChanged,
used by ColumnHeader to raise ColumnWidthChanged. [
Fixes Bug #467086]
svn path=/trunk/mcs/; revision=125702
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs index db6170ecc2f..cac8972e0b6 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs @@ -322,9 +322,13 @@ namespace System.Windows.Forms public int Width { get { return width; } set { - width = value; - if (owner != null) - owner.Redraw (true); + if (width != value) { + width = value; + if (owner != null) { + owner.Redraw (true); + owner.RaiseColumnWidthChanged (this); + } + } } } #endregion // Public Instance Properties |