protected void AxGrcIpqhTwjtTidView1_RowDataBound(object sender, G编程客栈ridViewRowEventArgs e)
&cIpqhTwjtTnbsp; {
//设置所有列不允许换行
//AxGwww.cppcns.comridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:false");
//设置所有列自动换行
&nhttp://www.cppcns.combsp; AxGridView1.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");
}
本文标题: ASP.NET Datagridview自动换行的小例子
本文地址: http://www.cppcns.com/wangluo/aspnet/98285.html
© 著作权归作者所有
举报
发表评论
0/200