Merge pull request #4453 from lambdageek/bug-49721
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / GridViewRowCollection.cs
index b434d6e34430fad689b577c1f045e318985b80bf..236f3144fa1ee75fbffe35272710d2ef4afe37e0 100644 (file)
@@ -4,7 +4,7 @@
 // Authors:
 //     Lluis Sanchez Gual (lluis@novell.com)
 //
-// (C) 2005 Novell, Inc (http://www.novell.com)
+// (C) 2004-2010 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
-
 using System;
 using System.Web.UI;
 using System.Collections;
@@ -45,8 +42,8 @@ namespace System.Web.UI.WebControls
                        this.rows = rows;
                }
                
-               public GridViewRow this [int i] {
-                       get { return (GridViewRow) rows [i]; }
+               public GridViewRow this [int index] {
+                       get { return (GridViewRow) rows [index]; }
                }
                
                public void CopyTo (GridViewRow[] array, int index)
@@ -62,6 +59,10 @@ namespace System.Web.UI.WebControls
                public int Count {
                        get { return rows.Count; }
                }
+
+               public bool IsReadOnly {
+                       get { return false; }
+               }
                
                public bool IsSynchronized {
                        get { return false; }
@@ -78,4 +79,3 @@ namespace System.Web.UI.WebControls
        }
 }
 
-#endif