TextBox Yu_Stu_Old_Text = (TextBox)GridView1.Rows[GridView1.EditIndex].Cells[2].FindControl("TextBox6");//取得出生年月
DateTime Yu_Stu_Old_Lable = DateTime.Parse(Yu_Stu_Old_Text.Text);//格式化出生年月
TimeSpan s = DateTime.Parse(DateTime.Now.Year + "-09-01") - Yu_Stu_Old_Lable;//计算出生年月与当前年9月1日之间的天数
((TextBox)GridView1.Rows[GridView1.EditIndex].Cells[2].FindControl("TextBox7")).Text = (s.Days/365).ToString();