Author: toshok
Date: 2007-06-01 15:38:23 -0400 (Fri, 01 Jun 2007)
New Revision: 78450
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
* DataGrid.cs: remove the XXX'ed check at the top of
ProcessGridKey. fixes #80464.
2007-06-01 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-01 19:34:44 UTC (rev 78449)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-01 19:38:23 UTC (rev 78450)
@@ -1,5 +1,10 @@
2007-06-01 Chris Toshok <[EMAIL PROTECTED]>
+ * DataGrid.cs: remove the XXX'ed check at the top of
+ ProcessGridKey. fixes #80464.
+
+2007-06-01 Chris Toshok <[EMAIL PROTECTED]>
+
* DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
adding idempotent (add/remove in Edit()), and also make sure we
don't add it until after we set the text, so it's not tripped in
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2007-06-01 19:34:44 UTC (rev 78449)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2007-06-01 19:38:23 UTC (rev 78450)
@@ -1414,7 +1414,7 @@
{
base.OnLeave (e);
- this.EndEdit ();
+ EndEdit ();
if (cursor_in_add_row) {
ListManager.CancelCurrentEdit ();
}
@@ -1808,11 +1808,6 @@
protected bool ProcessGridKey (KeyEventArgs ke)
{
- /* if we have no rows, exit immediately.
- XXX is this necessary? */
- if (RowsCount == 0)
- return false;
-
bool ctrl_pressed = ((ke.Modifiers & Keys.Control) !=
0);
//bool alt_pressed = ((ke.Modifiers & Keys.Alt) != 0);
bool shift_pressed = ((ke.Modifiers & Keys.Shift) != 0);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches