From acbf43cc0281b5762f0d2c8a0950e59851154438 Mon Sep 17 00:00:00 2001 From: toshok Date: Thu, 1 Feb 2007 23:40:10 +0000 Subject: [PATCH] 2007-02-01 Chris Toshok * DataGridTextBoxColumn.cs: clean up the GetFormattedString/GetColumnValueAtRow combination of functions. Also fix UpdateUI, and the initial state of IsInEditOrNavigateMode. * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we aren't supposed to scroll the textbox here, we're supposed to scroll the datagrid. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@72145 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs b/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs index e128318942..7a10d7239b 100644 --- a/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs +++ b/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs @@ -24,8 +24,6 @@ // // -// NOT COMPLETE - using System.ComponentModel; using System.Drawing; using System.Runtime.InteropServices; @@ -81,7 +79,9 @@ namespace System.Windows.Forms protected override void OnMouseWheel (MouseEventArgs e) { - base.OnMouseWheel (e); + // XXX we need to invoke a method on the datagrid to forward the mouse wheel - figure out what it is. + // base.OnMouseWheel is wrong, as the event is never raised by the textbox itself. + // grid.OnMouseWheel (e); } protected internal override bool ProcessKeyMessage (ref Message m) -- 2.11.4.GIT