Author: jordi
Date: 2006-01-17 16:33:53 -0500 (Tue, 17 Jan 2006)
New Revision: 55697
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
Log:
2006-01-17 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
* DataGrid.cs: Clicking on a column on a empty grid was giving
an exception
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-17 21:11:58 UTC (rev 55696)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-17 21:33:53 UTC (rev 55697)
@@ -1,3 +1,8 @@
+2006-01-17 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+ * DataGrid.cs: Clicking on a column on a empty grid was giving
+ an exception
+
2006-01-17 Peter Dennis Bartok <[EMAIL PROTECTED]>
* DataGrid.cs (OnKeyDown): Don't use the array if it's empty
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-01-17 21:11:58 UTC (rev 55696)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-01-17 21:33:53 UTC (rev 55697)
@@ -1347,6 +1347,9 @@
case HitTestType.ColumnHeader:
{
+ if (CurrentTableStyle.GridColumnStyles.Count ==
0)
+ break;
+
if (allow_sorting == false)
break;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches