Solved

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

Posted on 2016-09-25
2
85 Views
Last Modified: 2016-09-26
Hi

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

<ItemTemplate>

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

MaxLength="3" />

</ItemTemplate>
0
Comment
Question by:murbro
2 Comments
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 500 total points
ID: 41814866
Hi murbro,

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

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

Open in new window

Regards,
Tapan Pattanaik
0
 

Author Closing Comment

by:murbro
ID: 41815532
Great answer. Thank you very much!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question