使用GridView中的 RowDataBound事件进行进行处理
protected void GV_Content_RowDataBound(object sender, GridViewRowEventArgs e)
{if (e.Row.Cells[2].Text.Length > 30)
{
e.Row.Cells[2].Text = e.Row.Cells[2].Text.Trim().Substring(0, 30) + "...";
}
}
使用GridView中的 RowDataBound事件进行进行处理
protected void GV_Content_RowDataBound(object sender, GridViewRowEventArgs e)
{