您好,欢迎来到友迪情感。
搜索
您的当前位置:首页ASP.NET Datagridview自动换行的小例子

ASP.NET Datagridview自动换行的小例子

来源:友迪情感


代码如下:
protected void AxGridView1_RowDataBound(object sender, GridViewRowEventArgs e)
   {
       //设置所有列不允许换行
       //AxGridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:false");
       //设置所有列自动换行
       AxGridView1.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");
   }

Copyright © 2019- udiu.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务