使GridView内容不换行
www.diybl.com 时间 : 2010-06-28 作者:佚名 编辑:壹枝雪糕 点击: [ 评论 ]
protected void gvAudit_RowCreated(object sender, GridViewRowEventArgs e)
{ for (int i = 0; i < e.Row.Cells.Count; i++) { e.Row.Cells[i].Attributes.Add("style", "word-break :keep-all ;word-wrap:keep-all");
} }