using:
-asp.net 2.0
-Visual Studio 2005
I have a gridview and one column has a textbox that can be edited in the gridview at all times. There is no Edit/Update/Delete columns here.
From my business object (List) I'll bind it to the Grid.
If I originally bind the value 3 to this textbox it displays correctly. When I change this 3 to another number, 5 for instance... and then use:
to get the new value of 5 and place it back into the List objectCode:dim s as string =DirectCast(row.Cells(2).FindControl("QuantityTextBox"), TextBox).Text
the value is still 3 and not 5.
I've used this method many times before and with no problems.
I don't know why it isn't working here.
This is driving me nuts. Any ideas?
markup piece looks like this:
Code:<asp:TemplateField HeaderText="Quantity"> <ItemTemplate > <asp:TextBox ID="QuantityTextBox" runat="server" ></asp:TextBox> </ItemTemplate> </asp:TemplateField>




Reply With Quote