zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

ASP.NETDatagridview自动换行的小例子

ASP自动 例子 换行
2023-06-13 09:15:03 时间
复制代码代码如下:

protectedvoidAxGridView1_RowDataBound(objectsender,GridViewRowEventArgse)
  {
      //设置所有列不允许换行
      //AxGridView1.Attributes.Add("style","word-break:keep-all;word-wrap:false");
      //设置所有列自动换行
      AxGridView1.Attributes.Add("style","word-break:break-all;word-wrap:break-word");
  }