手机
当前位置:查字典教程网 >编程开发 >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 Dictionary 的基本用法示例介绍

ASP.NET 绑定DataSet中的多个表

DataGridView自动调整行高和行宽

ASP.NET中为GridView添加删除提示框的方法

gridview自动排序示例分享

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

ASP.NET 页面刷新的实现方法

ASP.NET中ServerPush用法实例分析

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

ASP.NET 2005 Treeview终极解决方案

精品推荐
分类导航