Hello Sir,
This is my for loop code, it is working fine , just the problem is, if there are 10 rows , it runs for 9 rows and not for 10th time? What correction is needed?
Kindly suggest.
protected void gvouter_RowDataBound1(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            int count_rows_for_saving_answers = gvouter.Rows.Count;
            for (int ii = 0; ii <= count_rows_for_saving_answers - 1; ii++)
            {
                Label lblsubid = (Label)gvouter.Rows[ii].FindControl("lblsubid");
                subjectid = lblsubid.Text.ToString();
                chkpassagerows = 0;
                 foreach (GridViewRow dr in gvouter.Rows)
                {
                    int a = dr.RowIndex;
                    chkpassagerows = gvouter.Rows.Count;
                    Label lbl_tot_attempted_per_subject = (Label)gvouter.Rows[ii].FindControl("lbl_tot_attempted_per_subject");
                    
                }
            }
        }
}
Thanks
Rohit