手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >ASP.NET Datagridview自动换行的小例子
ASP.NET Datagridview自动换行的小例子
摘要:复制代码代码如下:protectedvoidAxGridView1_RowDataBound(objectsender,GridViewRo...

复制代码 代码如下:

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 多次提交的解决办法

ASP.NET 2005 Treeview终极解决方案

ASP.NET 导出到Excel时保留换行的代码

ASP.NET中DataTable,DataSet,DataView的用法小结

ASP.NET 输出缓存移除的实例代码

ASP.NET使用正则表达式屏蔽垃圾信息

ASP.NET State service状态服务的问题解决方法

asp.net Gridview里添加汇总行

ASP.NET Dictionary 的基本用法示例介绍

asp.net gridview强制换行

精品推荐
分类导航