Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Read GridView Values

Thread Tools

Read GridView Values

Posts: n/a
I added the following column to my GridView:

<asp:TemplateField HeaderText="Quantity" >
<HeaderStyle ForeColor="#C147B4"
/><ItemTemplate >
<asp:TextBox ID="TextBox1"
MaxLength="3" text='<%# DataBinder.Eval(Container,"DataItem.Quantity") %>'
runat="server" Width="32px" EnableViewState="true"></asp:TextBox>
<ItemStyle HorizontalAlign="Right" />

When user is meant to change the value in the text box when the user does
and then clicks on some other button on the window and I try to read the
current values I get the original values and not those entered by the user.

Here is how I read the data
Val(CType(DVBasket.Rows.Item(i).Cells(2).FindContr ol("TextBox1"), _

Thnak you in advanced,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read 10 values at a time from a text file out of 50 values in VHDL shrutisunder VHDL 0 03-11-2009 06:10 AM
gridview column values to another page via gridview hyperlink column Keith G Hicks ASP .Net 3 02-18-2008 06:17 AM
Howto read values in GridView from the row about to be edited inRowEditing ? Radu ASP .Net 0 02-04-2008 04:39 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Comparing values in 2 textfiles and returning the missing values Jorgen Gustafsson Perl 4 12-12-2003 09:09 AM