[Mono-bugs] [Bug 43901][Nor] New - EditCommandColumn Doesn't work

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 29 May 2003 20:42:06 -0400 (EDT)


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 ljones@lithonia.com.

http://bugzilla.ximian.com/show_bug.cgi?id=43901

--- shadow/43901	Thu May 29 20:42:06 2003
+++ shadow/43901.tmp.18504	Thu May 29 20:42:06 2003
@@ -0,0 +1,87 @@
+Bug#: 43901
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ljones@lithonia.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: EditCommandColumn Doesn't work
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Here is the datagrid I used:
+<asp:DataGrid
+  ID="dgrdProducts"
+  OnEditCommand="dgrdProducts_EditCommand"
+  OnUpdateCommand="dgrdProducts_UpdateCommand"
+  OnCancelCommand="dgrdProducts_CancelCommand"
+  DataKeyField="ProductID"
+  AutoGenerateColumns="False"
+  CellPadding="10"
+  HeaderStyle-BackColor="Salmon"
+  Runat="Server">
+<Columns>
+  <asp:BoundColumn
+    HeaderText="Product Name"
+    DataField="ProductName"
+    ReadOnly="True" />
+  <asp:TemplateColumn>
+  <HeaderTemplate>
+    Price
+  </HeaderTemplate>
+  <ItemTemplate>
+     <%# DataBinder.Eval(Container.DataItem, "UnitPrice" ) %>
+  </ItemTemplate>
+  <EditItemTemplate>
+    <asp:TextBox
+      ID="txtUnitPrice"
+      Text='<%# DataBinder.Eval(Container.DataItem, "UnitPrice" ) %>'
+      Runat="Server" />
+    <asp:RequiredFieldValidator
+      ControlToValidate="txtUnitPrice"
+      Display="Dynamic"
+      Text="Required!"
+      Runat="Server" />
+    <asp:CompareValidator
+      ControlToValidate="txtUnitPrice"
+      Display="Dynamic"
+      Text="Must be Currency!"
+      Operator="DataTypeCheck"
+      Type="Currency"
+      Runat="Server" />
+  </EditItemTemplate>
+  </asp:TemplateColumn>
+  <asp:EditCommandColumn
+    EditText="Edit!"
+    UpdateText="Update!"
+    CancelText="Cancel!" />
+</Columns>
+</asp:DataGrid>
+
+2. 
+3. 
+
+Actual Results:
+No errors, it produced a column where the Edit should be but it was 
+blank.  None of the three buttons showed up.
+
+Expected Results:
+An Edit Column with Edit button, then Update, and Cancel Buttons
+
+How often does this happen? 
+always
+
+Additional Information: