//gridview_RowDataBound 事件下if (e.Row.RowType == DataControlRowType.DataRow) //判断gridview行的类型 { Literal ltl = e.Row.FindControl("ltl") as Literal; }