用户名: 密   码:
   飞诺网 加入收藏
飞诺网 网站开发 VBScript ASP Asp.net Jsp php XML CGI-Perl 搜索引擎 ajax web技术
.net系列教程 .net实例 .Net技术文档

您当前的位置:飞诺网 >> .net >> .net实例

使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");
             }         }
如果图片或页面不能正常显示请点击这里
.net实例推荐文章

文章评论