源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

ASP.NET Datagridview自动换行的小例子

  • 时间:2021-05-12 21:32 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:ASP.NET Datagridview自动换行的小例子
[u]复制代码[/u] 代码如下:
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");    }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部