ChangeLog: Updated ChangeLog.
authorSanja Gupta <sanjay@mono-cvs.ximian.com>
Wed, 11 Aug 2004 11:36:04 +0000 (11:36 -0000)
committerSanja Gupta <sanjay@mono-cvs.ximian.com>
Wed, 11 Aug 2004 11:36:04 +0000 (11:36 -0000)
GridViewCancelEditEventArgs.cs:
GridViewCancelEditEventHandler.cs:
GridViewCommandEventArgs.cs:
GridViewCommandEventHandler.cs:
GridViewDeletedEventArgs.cs:
GridViewDeletedEventHandler.cs:
GridViewDeleteEventArgs.cs:
GridViewDeleteEventHandler.cs:
GridViewEditEventArgs.cs:
GridViewEditEventHandler.cs:
GridViewPageEventArgs.cs:
GridViewPageEventHandler.cs:
GridViewRowEventArgs.cs:
GridViewRowEventHandler.cs:
GridViewSelectEventArgs.cs:
GridViewSelectEventHandler.cs:
GridViewSortEventArgs.cs:
GridViewSortEventHandler.cs:
GridViewUpdatedEventArgs.cs:
GridViewUpdatedEventHandler.cs:
GridViewUpdateEventArgs.cs:
GridViewUpdateEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32199

23 files changed:
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventArgs.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventHandler.cs [new file with mode: 0644]

index 05359d0d73c9a47f14873ff28eedb2861eeed4ab..643ddc5bfa17b1c7a1cfe46f111f8ede0e74b343 100644 (file)
@@ -1,3 +1,28 @@
+2004-08-11  Sanjay Gupta <gsanjay@novell.com>
+
+       * GridViewCancelEditEventArgs.cs:
+       * GridViewCancelEditEventHandler.cs:
+       * GridViewCommandEventArgs.cs:
+       * GridViewCommandEventHandler.cs:
+       * GridViewDeletedEventArgs.cs:
+       * GridViewDeletedEventHandler.cs:
+       * GridViewDeleteEventArgs.cs:
+       * GridViewDeleteEventHandler.cs:
+       * GridViewEditEventArgs.cs:
+       * GridViewEditEventHandler.cs:
+       * GridViewPageEventArgs.cs:
+       * GridViewPageEventHandler.cs:
+       * GridViewRowEventArgs.cs:
+       * GridViewRowEventHandler.cs:
+       * GridViewSelectEventArgs.cs:
+       * GridViewSelectEventHandler.cs:
+       * GridViewSortEventArgs.cs:
+       * GridViewSortEventHandler.cs:
+       * GridViewUpdatedEventArgs.cs:
+       * GridViewUpdatedEventHandler.cs:
+       * GridViewUpdateEventArgs.cs:
+       * GridViewUpdateEventHandler.cs: Added new delegates.
+
 2004-08-11  Sanjay Gupta <gsanjay@novell.com>
 
        * FormViewUpdatedEventArgs.cs: Corrected constructor.
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventArgs.cs
new file mode 100644 (file)
index 0000000..d08a681
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.GridViewCancelEditEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewCancelEditEventArgs : CancelEventArgs
+       {
+               private int rowIndex;
+               
+               public GridViewCancelEditEventArgs (int index)
+               {
+                       this.rowsIndex = index;
+               }
+               
+               public int RowIndex {
+                       get { return rowsIndex; }
+               }
+
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCancelEditEventHandler.cs
new file mode 100644 (file)
index 0000000..1b3dfac
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewCancelEditEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewCancelEditEventHandler (object sender, GridViewCancelEditEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventArgs.cs
new file mode 100644 (file)
index 0000000..dfb449c
--- /dev/null
@@ -0,0 +1,61 @@
+//
+// System.Web.UI.WebControls.GridViewCommandEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewCommandEventArgs : CommandEventArgs
+       {
+               private object source;
+               private CommandEventArgs arguments;
+               private GridViewRow row;
+               
+               public GridViewCommandEventArgs (object source, CommandEventArgs arguments)
+               {
+                       this.source = source;
+                       this.arguments = arguments;
+                       this.row = null;
+               }
+               
+               public GridViewCommandEventArgs (GridViewRow row, object source, CommandEventArgs arguments)
+               {
+                       this.source = source;
+                       this.arguments = arguments;
+                       this.row = row;
+               }
+               
+               public object CommandSource {
+                       get { return source; }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewCommandEventHandler.cs
new file mode 100644 (file)
index 0000000..cd1f42e
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewCommandEventHandler.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewCommandEventHandler (object sender, GridViewCommandEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventArgs.cs
new file mode 100644 (file)
index 0000000..3f80ba7
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// System.Web.UI.WebControls.GridViewDeleteEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewDeleteEventArgs : CancelEventArgs
+       {
+               private int rowIndex;
+               private Exception e;
+               private bool exceptionHandled;
+               
+               public GridViewDeleteEventArgs (int index)
+               {
+                       this.rowsIndex = index;
+               }
+               
+               public int RowIndex {
+                       get { return rowsIndex; }
+               }
+
+               public IOrderedDictionary Keys {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary Values {
+                       get { return new NotImplementedException(); }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeleteEventHandler.cs
new file mode 100644 (file)
index 0000000..4d8b3cc
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewDeleteEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewDeleteEventHandler (object sender, GridViewDeleteEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventArgs.cs
new file mode 100644 (file)
index 0000000..ec9d172
--- /dev/null
@@ -0,0 +1,73 @@
+//
+// System.Web.UI.WebControls.GridViewDeletedEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewDeletedEventArgs : EventArgs
+       {
+               private int rowsAffected;
+               private Exception e;
+               private bool exceptionHandled;
+               
+               public GridViewDeletedEventArgs (int affectedRows, Exception e)
+               {
+                       this.rowsAffected = affectedRows;
+                       this.e = e;
+                       this.exceptionHandled = false;
+               }
+               
+               public int AffectedRows {
+                       get { return rowsAffected; }
+               }
+
+               public Exception Exception {
+                       get { return e };
+               }
+
+               public bool ExceptionHandled {
+                       get { return exceptionHandled; }
+                       set { exceptionHandled = value; }
+               }
+       
+               public IOrderedDictionary Keys {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary Values {
+                       get { return new NotImplementedException(); }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewDeletedEventHandler.cs
new file mode 100644 (file)
index 0000000..15329e9
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewDeletedEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewDeletedEventHandler (object sender, GridViewDeletedEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventArgs.cs
new file mode 100644 (file)
index 0000000..8c96d20
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.GridViewEditEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewEditEventArgs : CancelEventArgs
+       {
+               private int index;
+               
+               public GridViewEditEventArgs (int editIndex)
+               {
+                       this.index = editIndex;
+               }
+               
+               public int NewEditIndex {
+                       get { return index; }
+                       set { index = value; }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewEditEventHandler.cs
new file mode 100644 (file)
index 0000000..c2411a7
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewEditEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewEditEventHandler (object sender, GridViewEditEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventArgs.cs
new file mode 100644 (file)
index 0000000..cbf8ddf
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.GridViewPageEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewPageEventArgs : CancelEventArgs
+       {
+               private int pageIndex;
+               
+               public GridViewPageEventArgs (int pageIndex )
+               {
+                       this.pageIndex = pageIndex; 
+               }
+               
+               public int NewPageIndex {
+                       get { return pageIndex; }
+                       set { pageIndex = value;}
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewPageEventHandler.cs
new file mode 100644 (file)
index 0000000..215df10
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewPageEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewPageEventHandler (object sender, GridViewPageEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventArgs.cs
new file mode 100644 (file)
index 0000000..ab219fa
--- /dev/null
@@ -0,0 +1,50 @@
+//
+// System.Web.UI.WebControls.GridViewRowEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewRowEventArgs : EventArgs
+       {
+               private GridViewRow row; 
+               
+               public GridViewRowEventArgs (GridViewRow row )
+               {
+                       this.row = row;
+               }
+               
+               public GridViewRow Row {
+                       get { return row; }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewRowEventHandler.cs
new file mode 100644 (file)
index 0000000..abc9aff
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewRowEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewRowEventHandler (object sender, GridViewRowEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventArgs.cs
new file mode 100644 (file)
index 0000000..d477b91
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.GridViewSelectEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewSelectEventArgs : CancelEventArgs
+       {
+               private int selectedIndex;
+               
+               public GridViewSelectEventArgs (int selectedIndex )
+               {
+                       this.selectedIndex = selectedIndex; 
+               }
+               
+               public int NewSelectedIndex {
+                       get { return selectedIndex; }
+                       set { selectedIndex = value;}
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSelectEventHandler.cs
new file mode 100644 (file)
index 0000000..fe35926
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewSelectEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewSelectEventHandler (object sender, GridViewSelectEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventArgs.cs
new file mode 100644 (file)
index 0000000..7bbd3c1
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// System.Web.UI.WebControls.GridViewSortEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewSortEventArgs : CancelEventArgs
+       {
+               private strign sortExpression;
+               
+               public GridViewSortEventArgs (string expression)
+               {
+                       this.sortExpression = expression;
+               }
+               
+               public string SortExpression {
+                       get { return sortExpression; }
+                       set { sortExpression = value;}
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewSortEventHandler.cs
new file mode 100644 (file)
index 0000000..8a0f490
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewSortEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewSortEventHandler (object sender, GridViewSortEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventArgs.cs
new file mode 100644 (file)
index 0000000..c5d6bd9
--- /dev/null
@@ -0,0 +1,65 @@
+//
+// System.Web.UI.WebControls.GridViewUpdateEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewUpdateEventArgs : CancelEventArgs
+       {
+               private int rowIndex;
+               
+               public GridViewUpdateEventArgs (int rowIndex)
+               {
+                       this.rowIndex = rowIndex;
+               }
+               
+               public int RowIndex {
+                       get { return rowIndex; }
+               }
+
+               public IOrderedDictionary Keys {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary NewValues {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary OldValues {
+                       get { return new NotImplementedException(); }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdateEventHandler.cs
new file mode 100644 (file)
index 0000000..c1ed833
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebContrls.GridViewUpdateEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewUpdateEventHandler (object sender, GridViewUpdateEventArgs e);
+}
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventArgs.cs
new file mode 100644 (file)
index 0000000..3fe2248
--- /dev/null
@@ -0,0 +1,84 @@
+//
+// System.Web.UI.WebControls.GridViewUpdatedEventArgs.cs
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Collections.Specialized;
+
+namespace System.Web.UI.WebControls
+{
+       public class GridViewUpdatedEventArgs : EventArgs
+       {
+               private int rowsAffected;
+               private Exception e;
+               private bool exceptionHandled;
+               private bool keepEditMode;
+               
+               public GridViewUpdatedEventArgs (int affectedRows, Exception e)
+               {
+                       this.rowsAffected = affectedRows;
+                       this.e = e;
+                       this.exceptionHandled = false;
+                       this.keepEditMode = false;
+               }
+               
+               public int AffectedRows {
+                       get { return rowsAffected; }
+               }
+
+               public Exception Exception {
+                       get { return e };
+               }
+
+               public bool ExceptionHandled {
+                       get { return exceptionHandled; }
+                       set { exceptionHandled = value; }
+               }
+       
+               public bool KeepInEdittMode {
+                       get { return keepEditMode; }
+                       set { keepEditMode = value; }
+               }
+
+               public IOrderedDictionary Keys {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary NewValues {
+                       get { return new NotImplementedException(); }
+               }
+
+               public IOrderedDictionary OldValues {
+                       get { return new NotImplementedException(); }
+               }
+       }
+}
+
+#endif
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventHandler.cs b/mcs/class/System.Web/System.Web.UI.WebControls/GridViewUpdatedEventHandler.cs
new file mode 100644 (file)
index 0000000..bf95a34
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Web.UI.WebControls.GridViewUpdatedEventHandler.cs;
+//
+// Authors:
+//   Sanjay Gupta (gsanjay@novell.com)
+//
+// (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI.WebControls {
+       public sealed delegate void GridViewUpdatedEventHandler (object sender, GridViewUpdatedEventArgs e);
+}
+#endif