Solved

Is it possible to use a gridview with textboxes in all rows?

Posted on 2011-03-10
2
251 Views
Last Modified: 2012-05-11
I have a project that requires me to allow a user to update 24 rows and 20 columns at one time. This is based on the hours in the day. However, the user does not wat to press an edit button on each record. an example is a spreadsheet with 24 rows. each row has eight 20 columns. each column needs to be filled with data. I would like to have text boxes for each column in every row. Can this be done without tables? if so, please provide a code sample.

Thanks.
0
Comment
Question by:bschave2
2 Comments
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 35106336
You can use textbox in  template field in gridview to do that.

0
 
LVL 9

Accepted Solution

by:
gery128 earned 500 total points
ID: 35108638
yeah, as suggested by Mayank_joshi correctly, you can always use template field: just like this:
<asp:TemplateField HeaderText="City" SortExpression="City">
        <ItemTemplate>
           <asp:TextBox runat="server" ID="txtCityEdit" Text='<%# Eval("City") %>'></asp:Label>
        </ItemTemplate>
  </asp:TemplateField> So user will directly be presented with textbox and values filled in. but he still need to click on some button (update command) to update it to database.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 45
Need help constructing a conditional update query 16 47
RegEx with optional part 4 24
access query to sql server 3 21
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

810 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