I getting a Exception in RowUpdating Event. Here the Screenshot:-
here the function for the update process:-
This is how I performs Update process:-
Please try to solve it.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bineesh ViswanathPosted Dec 16, 2013, 11:59 PM
Please verify the aspx code:-
<%#Container.DataItemIndex+1 %>
In the RowUpdating Event, all controls except lblEmpId are NULL values.
Abhay ShankerPosted Dec 16, 2013, 10:05 PM
protected void dgvEmployee_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = dgvEmployee.Rows[e.RowIndex];
name=((TextBox)(row.Cells[1].Controls[0])).Text;
}