【发布时间】:2010-09-23 12:47:05
【问题描述】:
在表格的 td 中的 HTML 中,您可以通过在单词之间使用 <BR> 来中断文本。这也适用于 TemplateItem 的 HeaderText,但不适用于 BoundField 的 HeaderText。如何分解 BoundField 的 Header 文本。
【问题讨论】:
-
您可以按照How to properly display line breaks in asp GridView BoundField without turning HTML encoding off 中的建议使用 NewLine(不是 BR)和 white-space: pre-line css
标签: c# gridview boundfield headertext