示例#1
0
 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         string content = e.Row.Cells[4].Text;
         e.Row.Cells[4].Text = StrHelper.GetFirstString(content, 12); // 截取12字节宽度内容
     }
 }