protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) e.Row.Cells[0].Text = e.Row.Cells[0].Text.Length >10 ? "大于10" : "小于10"; }