ASP.NET Datagridview自动换行的小例子
2013-07-29 11:56
621 查看
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");
}
相关文章推荐
- ASP.NET Datagridview自动换行的小例子
- asp.net 中textbox如何自动换行
- [ASP.NET] 实现Label自动换行
- C#下 ASP.NET 2.0中禁止GridView的内容自动换行 (测试有效!!)
- asp.net中label、table、gridview不自动换行的问题
- asp.net中Label内容自动换行
- 解决ASP.net的GridView自动换行的问题
- ASP.NET GridView中文本内容无法换行(自动换行/正常换行)
- ASP.NET GridView中文本内容无法换行(自动换行/正常换行)
- VS2010(Asp.net)中空格加点和代码自动换行的两个有用的快捷键!
- [小技巧]asp.net Label 自动换行
- 解决ASP.NET母版页title标签自动换行
- [ASP.NET] 实现Label自动换行
- 三层结构ASP.NET程序中,把实体类自动显示在页面上的例子(c#)
- ASP.NET GridView中文本内容无法换行(自动换行/正常换行)
- ASP.NET label内容自动换行
- asp.net 中Label 实现自动换行的效果!
- asp.net中控制文字自动换行
- asp.net 网页编码自动识别代码
- 在ASP.NET中自动合并小图片并使用CSS Sprite显示出来