Author: andrews
Date: 2006-07-19 05:34:12 -0400 (Wed, 19 Jul 2006)
New Revision: 62735

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
Log:
* DetailsView.cs: throw ArgumentOutOfRangeException for compatibility with
.Net; don't throw NotImplemented when base class implementation is available.

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-07-19 09:31:51 UTC (rev 62734)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-07-19 09:34:12 UTC (rev 62735)
@@ -1,5 +1,11 @@
 2006-07-18 Andrew Skiba <[EMAIL PROTECTED]>
 
+       * DetailsView.cs: throw ArgumentOutOfRangeException for compatibility
+       with .Net; don't throw NotImplemented when base class implementation
+       is available.
+
+2006-07-18 Andrew Skiba <[EMAIL PROTECTED]>
+
        * DetailsViewPagerRow.cs: add a stub for this class
 
 2006-07-17 Vladimir Krasnov <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs 
2006-07-19 09:31:51 UTC (rev 62734)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs 
2006-07-19 09:34:12 UTC (rev 62735)
@@ -421,8 +421,10 @@
                                if (o != null) return (int) o;
                                return -1;
                        }
-                       set {
-                               ViewState ["CellPadding"] = value;
+                       set {
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException 
("< -1");
+                               ViewState["CellPadding"] = value;
                                RequireBinding ();
                        }
                }
@@ -436,7 +438,9 @@
                                if (o != null) return (int) o;
                                return 0;
                        }
-                       set {
+                       set {
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException 
("< -1");
                                ViewState ["CellSpacing"] = value;
                                RequireBinding ();
                        }
@@ -988,8 +992,8 @@
        
                [MonoTODO]
                protected override Style CreateControlStyle ()
-               {
-                       throw new NotImplementedException ();
+               {
+                       return base.CreateControlStyle ();
                }
                
                protected override int CreateChildControls (IEnumerable data, 
bool dataBinding)
@@ -1130,8 +1134,8 @@
 
                [MonoTODO]
                protected override void EnsureDataBound ()
-               {
-                       throw new NotImplementedException ();
+               {
+                       base.EnsureDataBound ();
                }
                
                DataControlRowState GetRowState (int index)
@@ -1679,8 +1683,8 @@
 
                [MonoTODO]
                protected override void OnPagePreLoad (object sender, EventArgs 
e)
-               {
-                       throw new NotImplementedException ();
+               {
+                       base.OnPagePreLoad (sender, e);
                }
                
                protected internal override void OnPreRender (EventArgs e)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to