Hello ,
Modify your code and try this way
private void updatetono()
{
DataTable dtpack = (DataTable)Session["gridviewupdate"];
DataTable dtudate = new DataTable();
for (int i = 0; dtpack.Rows.Count > i; i++)
{
CheckBox checks = (CheckBox)grdno.Rows[i].FindControl("gridviewtrans");
if(checks != null && checks.Checked)
{
dtudate = lo.updatehomeunactive(dtpack.Rows[i]["PkgName"].ToString());
}
else
{
}
}
}
Thanks