• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

ASP.net 2015 Add TextBox Column to GridView for Data Entry


I have a bound GridView that has a few template columns. I need to add an extra  template for data entry by the user.
It is to enter a numeric quantity. I tried markup like that below but "TextBox" was not recognized. While this may have worked
in previous versions of Visual Studio, it does not work inn 2015


<asp:TextBox ID="tbQty" runat="server" Width="25px"

MaxLength="3" />

Murray Brown
Murray Brown
1 Solution
Tapan PattanaikSenior EngineerCommented:
Hi murbro,

Please paste the below code and let me know. It is working for me in  2015 visual studio.

        <asp:TemplateField HeaderText="Qty">
             <asp:TextBox ID="tbQty" runat="server" Width="25px" MaxLength="3" />

Open in new window

Tapan Pattanaik
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Great answer. Thank you very much!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now