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

gridview自动排序示例分享

DataGridView自动调整行高和行宽

ASP.NET中常用的优化性能的方法

ASP.NET 多次提交的解决办法

asp.net Gridview里添加汇总行

ASP.NET 状态的传递和保存

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

ASP.NET中为DataGrid添加合计字段

asp.net gridview强制换行

精品推荐
分类导航