tonelm54
asked on
aspx GridView get values before update
Im looking for a way to use a GridView, but actually control the update command more.
What Id like to be able to do is once the 'update' is clicked in an editable row, before the update is commited to call a function and be able to query the textboxes in the editable row.
Any ideas?
What Id like to be able to do is once the 'update' is clicked in an editable row, before the update is commited to call a function and be able to query the textboxes in the editable row.
Any ideas?
ASKER
VB Code
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
If e.CommandName = "Update" Then
MsgBox(GridView1.FindControl("TextBox1"))
End If
End Sub
End Class
ASKER
I belive the line 'MsgBox(GridView1.FindCont rol("TextB ox1"))' should display my new value Ive entered into the row, but instead just fails.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window