gridview固定列的宽度并且能换行
摘要:在RowCreated事件中添加 e.Row.Cells[6].Attributes.Add("style", "word-break :break-all ; word-wrap:break-word"); 这样则会让你选定的列自动换行了 不过前提是要给列设置宽度 前台这样写。 注意: Wrap="True" 啊! 上面只能对单一的列其作用。 下面是全局的,写到CSS里最好不过了。 G...
阅读全文
posted @ 2008-09-27 11:40