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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhay ShankerRank #375 · 6.7K reputationPosted Dec 16, 2013, 5:05 PM EST
protected void dgvEmployee_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = dgvEmployee.Rows[e.RowIndex];
name=((TextBox)(row.Cells[1].Controls[0])).Text;
}
Bineesh ViswanathRank #1,681 · 907 reputationPosted Dec 16, 2013, 6:59 PM EST
Please verify the aspx code:-
<%#Container.DataItemIndex+1 %>
In the RowUpdating Event, all controls except lblEmpId are NULL values.