Adding to what
Duncan Edwards Jones said, I am just pointing out the problem.
Inside the
btnUpdate_Click
Event, you have ...
string strMode = ((TextBox)GridView1.Rows[i].FindControl("Mode")).Text;
string strChallanNo = ((TextBox)GridView1.Rows[i].FindControl("ChallanNo")).Text;
string strVehicleNo = ((TextBox)GridView1.Rows[i].FindControl("VehicleNo")).Text;
string strChallanDate = ((TextBox)GridView1.Rows[i].FindControl("ChallanDate")).Text;
string strDescription = ((TextBox)GridView1.Rows[i].FindControl("Description")).Text;
But in
chkSelect_CheckedChanged
Event, you have...
TextBox txtMode = (TextBox)grdRow.FindControl("txtMode");
TextBox txtChallanNo = (TextBox)grdRow.FindControl("txtChallanNo");
TextBox txtVehicleNo = (TextBox)grdRow.FindControl("txtVehicleNo");
TextBox txtChallanDate = (TextBox)grdRow.FindControl("txtChallanDate");
TextBox txtDescription = (TextBox)grdRow.FindControl("txtDescription");
See that the Control IDs are different. One of them is correct.