Author: kostat
Date: 2006-06-11 03:53:47 -0400 (Sun, 11 Jun 2006)
New Revision: 61619
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/GridView.cs
Log:
set the row index from GridRowView if CommandArgument does not contain this
information
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-06-11 07:44:32 UTC (rev 61618)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-06-11 07:53:47 UTC (rev 61619)
@@ -1,5 +1,9 @@
2006-06-11 Konstantin Triger <[EMAIL PROTECTED]>
+ * GridView.cs: set the row index from GridRowView if CommandArgument
does not contain this information.
+
+2006-06-11 Konstantin Triger <[EMAIL PROTECTED]>
+
* ObjectDataSourceViewTest.cs: return documented default for
OldValuesParameterFormatString.
2006-05-24 Vladimir Krasnov <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/GridView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/GridView.cs
2006-06-11 07:44:32 UTC (rev 61618)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/GridView.cs
2006-06-11 07:53:47 UTC (rev 61619)
@@ -1379,7 +1379,13 @@
GridViewCommandEventArgs args = e as
GridViewCommandEventArgs;
if (args != null) {
OnRowCommand (args);
- ProcessEvent (args.CommandName,
args.CommandArgument as string);
+ string param = args.CommandArgument as string;
+ if (param == null || param.Length == 0) {
+ GridViewRow row = args.Row;
+ if (row != null)
+ param = row.RowIndex.ToString();
+ }
+ ProcessEvent (args.CommandName, param);
}
return base.OnBubbleEvent (source, e);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches