Author: toshok
Date: 2006-05-25 15:43:25 -0400 (Thu, 25 May 2006)
New Revision: 61140
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 (EnsureCellVisibility): remove some code to fix a
problem with the last commit.
2006-05-25 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
2006-05-25 19:37:06 UTC (rev 61139)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-25 19:43:25 UTC (rev 61140)
@@ -1,5 +1,10 @@
2006-05-25 Chris Toshok <[EMAIL PROTECTED]>
+ * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
+ problem with the last commit.
+
+2006-05-25 Chris Toshok <[EMAIL PROTECTED]>
+
* DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
need the invalidate call here, while scrolling right-to-left via
the left arrow key (i.e. moving the editing cell while scrolling).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-05-25 19:37:06 UTC (rev 61139)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-05-25 19:43:25 UTC (rev 61140)
@@ -1904,16 +1904,10 @@
cell.RowNumber + 1 >= first_visiblerow +
visiblerow_count) {
if (cell.RowNumber + 1 >= first_visiblerow +
visiblerow_count) {
- int old_first_visiblerow =
first_visiblerow;
- first_visiblerow = 1 + cell.RowNumber -
visiblerow_count;
- grid_drawing.UpdateVisibleRowCount ();
- }else {
- int old_first_visiblerow =
first_visiblerow;
- first_visiblerow = cell.RowNumber;
- grid_drawing.UpdateVisibleRowCount ();
+ vert_scrollbar.Value = 1 +
cell.RowNumber - visiblerow_count;
+ } else {
+ vert_scrollbar.Value = cell.RowNumber;
}
-
- vert_scrollbar.Value = first_visiblerow;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches