Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
XML
<asp:TemplateField HeaderText="Quantity">
      <ItemTemplate>
          <asp:Label ID="lbl_quantity" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"quantity") %>'>
          </asp:Label>

      </ItemTemplate>

      <EditItemTemplate>
          <asp:TextBox runat="server" ID="txtquantity" Width="90px" onkeypress="return validatenumerics(event);" Text='<%# DataBinder.Eval(Container.DataItem,"quantity") %>'></asp:TextBox>
          <asp:RequiredFieldValidator ID="RFquantity" runat="server" ControlToValidate="txtquntity" Display="None" ErrorMessage="This field is required value" ValidationGroup="quantity">
          </asp:RequiredFieldValidator>
          <ajaxToolkit:ValidatorCalloutExtender ID="VCquantity" runat="Server" TargetControlID="RFquantity"/>

      </EditItemTemplate>
  </asp:TemplateField>






I tried this code but my edit button is not fired.. what's the problem ..
Posted
Updated 17-Oct-13 2:22am
v7

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900