How do I break the a BoundField's HeaderText

前端 未结 2 1905
半阙折子戏
半阙折子戏 2021-01-01 17:10

In HTML in the td of a table you can break text by using
between the words. This also works in the HeaderText of a TemplateItem but not the HeaderTex

2条回答
  •  无人及你
    2021-01-01 18:15

    For those of you trying to do this without disabling HtmlEncode it's pretty simple, if a little silly looking. Just use a real line break. Like so...

    
    

    That will actually come out as multi-line when the HTML renders.

    If there is a character combination that will signify this, I would love to know it.

提交回复
热议问题