15 pts.
 GridView and RowUpdating and getting the Values
I have a gridview and I have my items in a template inside. I am trying to update the values after the edit mode but they are not updating and I keep getting a error saying its not an object. this is one piece of code where i am trying to access the data in the RowUpdating function Dim thisTest As String = CType(recordsGridView.SelectedRow.FindControl("txtSvc"), TextBox).Text

Software/Hardware used:
ASKED: May 14, 2009  11:16 PM
UPDATED: May 15, 2009  2:15 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Moderator Note: Hello Srisaacks. Since this is your first question – I wanted to say welcome and explain the best way to get an answer on IT Knowledge Exchange. When you post a question, be sure to provide enough information. For example, it would have been helpful if you had mentioned what language you’re using and the version. You can click the “Add to Discussion” button to provide more details at any time. Thanks.

 6,565 pts.

 

Here is the deal, I am using vb.net 2005, VS 2008, SQL Server 2008, and I have a gridview. I have populated the gridview using stored procecures. In the gridview I use templates. In the RowUpdating procedure of the gridview I am not sure how to update the gridview with the user input. I am not sure how to retrieve these values either. I have searched all over the net with no avail. Is this a better explanantion?

 15 pts.