[Mono-bugs] [Bug 80991][Maj] New - GridView and NewEditIndex
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Mar 1 09:53:27 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by marc.schneider at ac-nancy-metz.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=80991
--- shadow/80991 2007-03-01 09:53:27.000000000 -0500
+++ shadow/80991.tmp.12754 2007-03-01 09:53:27.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 80991
+Product: Mono: Class Libraries
+Version: 1.2
+OS: SUSE 9.2
+OS Details: OpenSuse 10.2
+Status: NEW
+Resolution:
+Severity: 040 One week
+Priority: Major
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com
+ReportedBy: marc.schneider at ac-nancy-metz.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: GridView and NewEditIndex
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+ NewEditIndex send CommandArgument, not index of the ligne
+
+Steps to reproduce the problem:
+1.
+ create aspx page with a GridView, add a LinkButton in the ItemTemplate
+tag of column 0
+write "Edit" for CommandName and "toto" for CommandArgument.
+associate myGridView_RowUpdating(object sender, GridViewUpdateEventArgs e)
+with RowUpdating event.
+2.
+ clik on LinkButton and what send the e.NewEditIndex
+
+Actual Results:
+
+ e.NewEditIndex send the CommandArgument
+
+Expected Results:
+
+ e.NewEditIndex send the index of the ligne in the GridView witch is click
+
+How often does this happen?
+
+it's true with "edit", "cancel", update", "delete"
+
+Additional Information:
+
+we can turn arround with myGridView_RowDataBound(object sender,
+GridViewRowEventArgs e)
+{
+ LinkButton LkBtSp = (LinkButton)e.Row.FindControl
+("LinkButtonForEditing");
+ if (LkBtSp != null)
+
+ LkBtSp.CommandArgument = e.Row.RowIndex.ToString();
+
+}
More information about the mono-bugs
mailing list