editable gridview

I' m trying to make a gridview editable and have the following problem:

In the GridView1_RowUpdating I have :

Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdatingDim txtUser As TextBox = CType(GridView1.Rows(e.RowIndex).FindControl("txtUser"), TextBox)

Label1.Text = txtUser.Text


End Sub

In the label1 I'm getting the same text as it was before the change. How to get the new text ?

Thanks in advance for help !

Read More


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s